[patch] new permission system

This commit is contained in:
Anand Doshi 2013-12-17 19:04:08 +05:30
parent 620145c59a
commit 2298d59b8b
2 changed files with 5 additions and 6 deletions

View File

@ -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")
reset("Page")
# patch to move print, email into DocPerm

View File

@ -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",
]