From 2298d59b8b50c1ad30fea7a9a17afe6e8297f68a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 17 Dec 2013 19:04:08 +0530 Subject: [PATCH] [patch] new permission system --- ..._restriction_management.py => p08_new_permissions.py} | 9 ++++----- patches/patch_list.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) rename patches/1311/{p08_restriction_management.py => p08_new_permissions.py} (60%) diff --git a/patches/1311/p08_restriction_management.py b/patches/1311/p08_new_permissions.py similarity index 60% rename from patches/1311/p08_restriction_management.py rename to patches/1311/p08_new_permissions.py index e89d6d0a02..301c15e7f0 100644 --- a/patches/1311/p08_restriction_management.py +++ b/patches/1311/p08_new_permissions.py @@ -5,10 +5,9 @@ from __future__ import unicode_literals import webnotes def execute(): - # add role "Restriction Manager" - if not webnotes.conn.exists("Role", "Restriction Manager"): - webnotes.bean({"doctype": "Role", "role_name": "Restriction Manager"}).insert() - # reset Page perms from core.page.permission_manager.permission_manager import reset - reset("Page") \ No newline at end of file + reset("Page") + + # patch to move print, email into DocPerm + \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index efc58538ff..30a4fc92ac 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -264,5 +264,5 @@ patch_list = [ "patches.1311.p08_email_digest_recipients", "execute:webnotes.delete_doc('DocType', 'Warehouse Type')", "patches.1311.p07_move_warehouse_user_to_restrictions", - "patches.1311.p08_restriction_management", + "patches.1311.p08_new_permissions", ] \ No newline at end of file