refactor!: Lower roles from All To Desk User

This commit is contained in:
Ankush Menat 2023-08-28 20:21:42 +05:30
parent 1b406edd54
commit dc8d7b019a
30 changed files with 85 additions and 75 deletions

View file

@ -66,7 +66,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-02-24 13:47:50.419648",
"modified": "2023-08-28 22:17:18.351025",
"modified_by": "Administrator",
"module": "Automation",
"name": "Reminder",
@ -78,7 +78,7 @@
"delete": 1,
"if_owner": 1,
"read": 1,
"role": "All",
"role": "Desk User",
"write": 1
}
],

View file

@ -158,7 +158,7 @@
"icon": "fa fa-comment",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-07-28 13:26:32.281278",
"modified": "2023-08-28 20:22:10.992615",
"modified_by": "Administrator",
"module": "Core",
"name": "Activity Log",
@ -170,16 +170,6 @@
"report": 1,
"role": "System Manager",
"share": 1
},
{
"email": 1,
"export": 1,
"if_owner": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"share": 1
}
],
"search_fields": "subject",

View file

@ -231,7 +231,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All"
"role": "Desk User"
}
],
"show_name_in_global_search": 1,
@ -239,4 +239,4 @@
"sort_order": "DESC",
"states": [],
"track_changes": 1
}
}

View file

@ -5,7 +5,12 @@ frappe.ui.form.on("Role", {
refresh: function (frm) {
if (frm.doc.name === "All") {
frm.dashboard.add_comment(
__("Role 'All' will be given to all System Users."),
__("Role 'All' will be given to all system + website users."),
"yellow"
);
} else if (frm.doc.name === "Desk User") {
frm.dashboard.add_comment(
__("Role 'Desk User' will be given to all system users."),
"yellow"
);
}

View file

@ -88,7 +88,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-01-23 12:45:53.997708",
"modified": "2023-08-28 22:25:55.480699",
"modified_by": "Administrator",
"module": "Core",
"name": "Submission Queue",
@ -107,7 +107,7 @@
{
"if_owner": 1,
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",

View file

@ -19,10 +19,11 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-04-15 16:12:31.455401",
"modified": "2023-08-28 22:25:16.941457",
"modified_by": "Administrator",
"module": "Core",
"name": "User Group",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
@ -39,10 +40,11 @@
},
{
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -43,7 +43,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-02-14 17:53:24.486171",
"modified": "2023-08-28 22:24:08.103972",
"modified_by": "Administrator",
"module": "Custom",
"name": "DocType Layout",
@ -64,7 +64,7 @@
},
{
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"route": "doctype-layout",

View file

@ -53,10 +53,11 @@
}
],
"links": [],
"modified": "2020-09-18 17:26:09.703215",
"modified": "2023-08-28 22:29:39.662726",
"modified_by": "Administrator",
"module": "Desk",
"name": "Calendar View",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
@ -73,9 +74,10 @@
},
{
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",
"sort_order": "DESC"
"sort_order": "DESC",
"states": []
}

View file

@ -93,7 +93,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-05-30 14:33:31.994738",
"modified": "2023-08-28 20:25:00.740795",
"modified_by": "Administrator",
"module": "Desk",
"name": "Custom HTML Block",
@ -106,7 +106,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
},
{
@ -118,7 +118,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
},

View file

@ -67,7 +67,7 @@
}
],
"links": [],
"modified": "2020-07-23 11:05:41.890459",
"modified": "2023-08-28 22:35:02.993039",
"modified_by": "Administrator",
"module": "Desk",
"name": "Dashboard",
@ -103,13 +103,14 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"title_field": "dashboard_name",
"track_changes": 1
}

View file

@ -287,7 +287,7 @@
}
],
"links": [],
"modified": "2023-08-14 16:33:30.172798",
"modified": "2023-08-28 20:20:54.186299",
"modified_by": "Administrator",
"module": "Desk",
"name": "Dashboard Chart",
@ -324,7 +324,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],

View file

@ -27,10 +27,11 @@
],
"in_create": 1,
"links": [],
"modified": "2020-04-01 00:07:26.489561",
"modified": "2023-08-28 22:23:42.722543",
"modified_by": "Administrator",
"module": "Desk",
"name": "Dashboard Settings",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
@ -39,7 +40,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
}
@ -47,5 +48,6 @@
"read_only": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -178,7 +178,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-05-25 11:30:44.396248",
"modified": "2023-08-28 20:24:42.594360",
"modified_by": "Administrator",
"module": "Desk",
"name": "Form Tour",
@ -199,7 +199,7 @@
},
{
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",

View file

@ -84,7 +84,7 @@
}
],
"links": [],
"modified": "2022-04-13 12:10:20.284367",
"modified": "2023-08-28 22:29:29.569670",
"modified_by": "Administrator",
"module": "Desk",
"name": "Kanban Board",
@ -93,14 +93,14 @@
"permissions": [
{
"read": 1,
"role": "All"
"role": "Desk User"
},
{
"create": 1,
"delete": 1,
"if_owner": 1,
"read": 1,
"role": "All",
"role": "Desk User",
"write": 1
},
{

View file

@ -36,7 +36,7 @@
],
"in_create": 1,
"links": [],
"modified": "2022-08-03 12:20:50.889979",
"modified": "2023-08-28 22:32:51.465521",
"modified_by": "Administrator",
"module": "Desk",
"name": "List Filter",
@ -50,7 +50,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
}

View file

@ -82,7 +82,7 @@
}
],
"links": [],
"modified": "2020-06-08 15:36:04.701049",
"modified": "2023-08-28 22:24:02.233272",
"modified_by": "Administrator",
"module": "Desk",
"name": "Module Onboarding",
@ -106,12 +106,13 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],
"read_only": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -86,7 +86,7 @@
"icon": "fa fa-file-text",
"idx": 1,
"links": [],
"modified": "2023-04-24 16:07:03.281184",
"modified": "2023-08-28 20:23:59.424943",
"modified_by": "Administrator",
"module": "Desk",
"name": "Note",
@ -122,21 +122,21 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All"
"role": "Desk User"
},
{
"create": 1,
"delete": 1,
"email": 1,
"if_owner": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
},
{
"permlevel": 1,
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"quick_entry": 1,

View file

@ -191,8 +191,8 @@
"options": "Sum\nAverage\nMinimum\nMaximum"
},
{
"description": "The document type selected is a child table, so the parent document type is required.",
"depends_on": "eval: doc.type === 'Document Type'",
"description": "The document type selected is a child table, so the parent document type is required.",
"fieldname": "parent_document_type",
"fieldtype": "Link",
"label": "Parent Document Type",
@ -200,7 +200,7 @@
}
],
"links": [],
"modified": "2022-06-12 15:34:38.210910",
"modified": "2023-08-28 22:23:56.286804",
"modified_by": "Administrator",
"module": "Desk",
"name": "Number Card",
@ -236,7 +236,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],

View file

@ -217,7 +217,7 @@
}
],
"links": [],
"modified": "2021-12-02 10:56:04.448580",
"modified": "2023-08-28 22:23:48.174317",
"modified_by": "Administrator",
"module": "Desk",
"name": "Onboarding Step",
@ -242,7 +242,7 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],
@ -250,5 +250,6 @@
"read_only": 1,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -41,7 +41,7 @@
"in_create": 1,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2020-09-17 09:19:28.496453",
"modified": "2023-08-28 22:34:53.394652",
"modified_by": "Administrator",
"module": "Email",
"name": "Document Follow",
@ -67,12 +67,13 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
}
],
"read_only": 1,
"sort_field": "modified",
"sort_order": "DESC"
"sort_order": "DESC",
"states": []
}

View file

@ -57,7 +57,7 @@
],
"icon": "fa fa-comment",
"links": [],
"modified": "2023-01-02 03:56:48.437280",
"modified": "2023-08-28 22:29:04.457992",
"modified_by": "Administrator",
"module": "Email",
"name": "Email Template",
@ -66,7 +66,7 @@
"permissions": [
{
"read": 1,
"role": "All"
"role": "Desk User"
},
{
"create": 1,

View file

@ -1,4 +1,5 @@
{
"actions": [],
"autoname": "field:calendar_name",
"creation": "2019-07-06 17:54:09.450100",
"doctype": "DocType",
@ -108,10 +109,12 @@
"label": "Push to Google Calendar"
}
],
"modified": "2019-08-08 15:44:15.798362",
"links": [],
"modified": "2023-08-28 22:21:44.238862",
"modified_by": "Administrator",
"module": "Integrations",
"name": "Google Calendar",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [
{
@ -135,12 +138,13 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -99,7 +99,7 @@
}
],
"links": [],
"modified": "2023-03-30 11:25:48.832384",
"modified": "2023-08-28 20:22:58.267442",
"modified_by": "Administrator",
"module": "Integrations",
"name": "Google Contacts",
@ -121,7 +121,7 @@
"delete": 1,
"if_owner": 1,
"read": 1,
"role": "All",
"role": "Desk User",
"write": 1
}
],

View file

@ -168,7 +168,7 @@
"idx": 1,
"links": [],
"max_attachments": 3,
"modified": "2022-06-16 23:10:46.852116",
"modified": "2023-08-28 22:19:23.720332",
"modified_by": "Administrator",
"module": "Printing",
"name": "Letter Head",
@ -188,7 +188,7 @@
},
{
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",

View file

@ -41,7 +41,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-10-07 11:23:13.799402",
"modified": "2023-08-28 22:25:22.236295",
"modified_by": "Administrator",
"module": "Printing",
"name": "Network Printer Settings",
@ -66,11 +66,12 @@
"print": 1,
"read": 1,
"report": 1,
"role": "All",
"role": "Desk User",
"share": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1
}

View file

@ -259,7 +259,7 @@
"icon": "fa fa-print",
"idx": 1,
"links": [],
"modified": "2023-05-31 15:40:52.919029",
"modified": "2023-08-28 20:25:09.660073",
"modified_by": "Administrator",
"module": "Printing",
"name": "Print Format",
@ -278,7 +278,7 @@
"write": 1
},
{
"role": "All",
"role": "Desk User",
"select": 1
}
],

View file

@ -110,7 +110,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-09-13 16:10:37.747013",
"modified": "2023-08-28 22:33:08.420000",
"modified_by": "Administrator",
"module": "Social",
"name": "Energy Point Log",
@ -124,7 +124,7 @@
{
"read": 1,
"report": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",

View file

@ -21,7 +21,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-03-20 22:47:25.768582",
"modified": "2023-08-28 22:26:04.298759",
"modified_by": "Administrator",
"module": "Website",
"name": "Marketing Campaign",
@ -53,7 +53,7 @@
"write": 1
},
{
"role": "All",
"role": "Desk User",
"select": 1
}
],

View file

@ -79,7 +79,7 @@
}
],
"links": [],
"modified": "2022-02-23 21:06:45.122258",
"modified": "2023-08-28 22:32:58.947849",
"modified_by": "Administrator",
"module": "Workflow",
"name": "Workflow Action",
@ -88,7 +88,7 @@
{
"delete": 1,
"read": 1,
"role": "All"
"role": "Desk User"
}
],
"sort_field": "modified",

View file

@ -40,7 +40,7 @@
"icon": "fa fa-flag",
"idx": 1,
"links": [],
"modified": "2023-03-13 22:33:58.504532",
"modified": "2023-08-28 22:19:35.232574",
"modified_by": "Administrator",
"module": "Workflow",
"name": "Workflow State",
@ -58,7 +58,7 @@
"write": 1
},
{
"role": "All",
"role": "Desk User",
"select": 1
}
],