feat: profile settings for roles

This commit is contained in:
Jannat Patel
2024-04-15 12:10:11 +05:30
parent 7e81b9d45d
commit f2c14d09d4
10 changed files with 147 additions and 22 deletions

View File

@@ -356,6 +356,7 @@ def get_users(or_filters, start, page_length):
@frappe.whitelist()
def save_role(user, role, value):
frappe.only_for("Moderator")
if cint(value):
doc = frappe.get_doc(
{