- add roles permision in api method
This commit is contained in:
Alexandrina-Kuzeleva
2025-11-28 10:11:30 +03:00
parent 64610050ca
commit 34f1d02803

View File

@@ -470,7 +470,7 @@ def get_assigned_badges(member):
@frappe.whitelist()
def get_all_users():
frappe.only_for(["Moderator", "Course Creator", "Batch Evaluator"])
frappe.only_for(["Moderator", "Course Creator", "Batch Evaluator", "LMS Student", "LMS Schoolchild", "Parent"])
users = frappe.get_all(
"User",
{"enabled": 1},