Skip to content

Commit

Permalink
fix missing settings doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
mymi14s committed Jan 4, 2024
1 parent 88d8985 commit fe8602e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"field_order": [
"mobile_app_version",
"column_break_xyl05",
"super_user_role",
"section_break_2",
"zenquote_keyword_category",
"zenquotes_api_key",
Expand Down Expand Up @@ -110,11 +111,17 @@
"fieldname": "employee_section",
"fieldtype": "Section Break",
"label": "Employee"
},
{
"fieldname": "super_user_role",
"fieldtype": "Link",
"label": "Super User Role",
"options": "Role"
}
],
"issingle": 1,
"links": [],
"modified": "2024-01-03 22:56:18.112927",
"modified": "2024-01-04 04:44:59.408601",
"modified_by": "Administrator",
"module": "One Fm",
"name": "ONEFM General Setting",
Expand Down
2 changes: 1 addition & 1 deletion one_fm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ def has_super_user_role(user=None):
if "Director" in user_roles:
return True
else:
# Get configured super user in ONEFM General Settings
# Get configured super user in ONEFM General Setting
super_user_role = frappe.db.get_single_value("ONEFM General Setting", "super_user_role")
# Check if the super user role exists in the user role list
if super_user_role and super_user_role in user_roles:
Expand Down

0 comments on commit fe8602e

Please sign in to comment.