* fix(unicode): Import unicode_literals in every file * fix(unicode): Test if safe_json_loads return unicode instead of bytes
13 lines
446 B
Python
13 lines
446 B
Python
from __future__ import unicode_literals
|
|
import frappe
|
|
from frappe.permissions import setup_custom_perms
|
|
from frappe.core.page.permission_manager.permission_manager import get_standard_permissions
|
|
from frappe.utils.reset_doc import setup_perms_for
|
|
|
|
'''
|
|
Copy DocPerm to Custom DocPerm where permissions are set differently
|
|
'''
|
|
|
|
def execute():
|
|
for d in frappe.db.get_all('DocType', dict(istable=0, issingle=0, custom=0)):
|
|
setup_perms_for(d.name)
|