reset perms of module def
This commit is contained in:
parent
449ce454ea
commit
b004791fd4
2 changed files with 14 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
"creation": "2013-01-10 16:34:03",
|
||||
"docstatus": 0,
|
||||
"modified": "2014-01-20 17:48:58",
|
||||
"modified": "2014-02-18 15:32:49",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
|
|
@ -28,22 +28,15 @@
|
|||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"amend": 0,
|
||||
"cancel": 0,
|
||||
"create": 1,
|
||||
"delete": 1,
|
||||
"doctype": "DocPerm",
|
||||
"email": 1,
|
||||
"name": "__common__",
|
||||
"parent": "Module Def",
|
||||
"parentfield": "permissions",
|
||||
"parenttype": "DocType",
|
||||
"permlevel": 0,
|
||||
"print": 1,
|
||||
"read": 1,
|
||||
"report": 1,
|
||||
"role": "Administrator",
|
||||
"submit": 0,
|
||||
"write": 1
|
||||
},
|
||||
{
|
||||
|
|
@ -54,6 +47,17 @@
|
|||
"doctype": "DocField"
|
||||
},
|
||||
{
|
||||
"doctype": "DocPerm"
|
||||
"amend": 0,
|
||||
"cancel": 0,
|
||||
"doctype": "DocPerm",
|
||||
"email": 1,
|
||||
"print": 1,
|
||||
"report": 1,
|
||||
"role": "Administrator",
|
||||
"submit": 0
|
||||
},
|
||||
{
|
||||
"doctype": "DocPerm",
|
||||
"role": "System Manager"
|
||||
}
|
||||
]
|
||||
|
|
@ -86,7 +86,7 @@ class WebsiteGenerator(DocListController):
|
|||
idx = add_to_sitemap(opts)
|
||||
|
||||
if idx and self.doc.idx != idx:
|
||||
self.update_value("idx", idx)
|
||||
frappe.conn.set(self.doc, "idx", idx)
|
||||
|
||||
def update_permissions(self, opts):
|
||||
if self.meta.get_field("public_read"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue