From 37ee57c2114b19c1fb5553ce188bd00b45fec1b8 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 28 May 2015 12:51:37 +0530 Subject: [PATCH] [fix] Remove guest perms from Issue --- erpnext/patches.txt | 1 + erpnext/support/doctype/issue/issue.json | 16 +--------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 5db55c6b1a..813b1fc6fe 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -159,3 +159,4 @@ erpnext.patches.v5_0.rename_pos_setting erpnext.patches.v5_0.update_operation_description erpnext.patches.v5_0.set_footer_address execute:frappe.db.set_value("Backup Manager", None, "send_backups_to_dropbox", 1 if frappe.db.get_value("Backup Manager", None, "upload_backups_to_dropbox") in ("Daily", "Weekly") else 0) +execute:frappe.db.sql_list("delete from `tabDocPerm` where parent='Issue' and modified_by='Administrator' and role='Guest'") diff --git a/erpnext/support/doctype/issue/issue.json b/erpnext/support/doctype/issue/issue.json index 9a698c541b..5892453d9a 100644 --- a/erpnext/support/doctype/issue/issue.json +++ b/erpnext/support/doctype/issue/issue.json @@ -233,26 +233,12 @@ ], "icon": "icon-ticket", "idx": 1, - "modified": "2015-05-20 07:16:53.673114", + "modified": "2015-05-28 03:21:04.690112", "modified_by": "Administrator", "module": "Support", "name": "Issue", "owner": "Administrator", "permissions": [ - { - "amend": 0, - "create": 1, - "delete": 0, - "email": 1, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "Guest", - "share": 1, - "submit": 0, - "write": 1 - }, { "amend": 0, "apply_user_permissions": 1,