File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed
Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 2828# required_apps = []
2929
3030# Each item in the list will be shown as an app in the apps page
31- # add_to_apps_screen = [
32- # {
33- # "name": "linklite",
34- # "logo": "/assets/linklite/logo.png",
35- # "title": "LinkLite ",
36- # "route": "/linklite ",
37- # "has_permission": "linklite.api.permission .has_app_permission"
38- # }
39- # ]
31+ add_to_apps_screen = [
32+ {
33+ "name" : "linklite" ,
34+ "logo" : "/assets/linklite/logo.png" ,
35+ "title" : "Link Lite " ,
36+ "route" : "/frontend " ,
37+ "has_permission" : "linklite.linklite.utils.permissions .has_app_permission"
38+ }
39+ ]
4040
4141# Includes in <head>
4242# ------------------
File renamed without changes.
Original file line number Diff line number Diff line change 1+ import frappe
2+
3+ def has_app_permission ():
4+ """Check if the user has permission to access the app."""
5+ if frappe .session .user == "Administrator" :
6+ return True
7+
8+ roles = frappe .get_roles ()
9+ if "Link Manager" in roles :
10+ return True
11+
12+ return False
You can’t perform that action at this time.
0 commit comments