Anand Doshi | 620145c | 2013-12-16 19:28:11 +0530 | [diff] [blame^] | 1 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors |
| 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
| 4 | from __future__ import unicode_literals |
| 5 | import webnotes |
| 6 | |
| 7 | def execute(): |
| 8 | # add role "Restriction Manager" |
| 9 | if not webnotes.conn.exists("Role", "Restriction Manager"): |
| 10 | webnotes.bean({"doctype": "Role", "role_name": "Restriction Manager"}).insert() |
| 11 | |
| 12 | # reset Page perms |
| 13 | from core.page.permission_manager.permission_manager import reset |
| 14 | reset("Page") |