erp-next/service_factory/api/permission.py
cclohmar 573765d51e feat: add Service Factory app icon to desk grid
- 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
2026-07-15 21:57:52 +00:00

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