[minor] patches for restriction
This commit is contained in:
parent
bcf2422848
commit
620145c59a
14
patches/1311/p08_restriction_management.py
Normal file
14
patches/1311/p08_restriction_management.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
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")
|
||||||
@ -264,4 +264,5 @@ patch_list = [
|
|||||||
"patches.1311.p08_email_digest_recipients",
|
"patches.1311.p08_email_digest_recipients",
|
||||||
"execute:webnotes.delete_doc('DocType', 'Warehouse Type')",
|
"execute:webnotes.delete_doc('DocType', 'Warehouse Type')",
|
||||||
"patches.1311.p07_move_warehouse_user_to_restrictions",
|
"patches.1311.p07_move_warehouse_user_to_restrictions",
|
||||||
|
"patches.1311.p08_restriction_management",
|
||||||
]
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user