- Added add_to_apps_screen hook in hooks.py with custom icon - Created service_factory SVG icon (blue rounded square) - Added permission check module (api/permission.py) - Assets symlink instruction in deploy README - Icon accessible at /assets/service_factory/icons/service_factory.svg
13 lines
363 B
Python
13 lines
363 B
Python
# Copyright (c) 2026, cclohmar and contributors
|
|
# For license information, please see license.txt
|
|
|
|
|
|
def has_app_permission():
|
|
"""Check if the current user has permission to see the Service Factory app icon."""
|
|
import frappe
|
|
|
|
# All authenticated users with at least one role can see the app icon
|
|
if frappe.session.user == "Guest":
|
|
return False
|
|
|
|
return True
|