@@ -2,7 +2,7 @@ | |||||
{ | { | ||||
"creation": "2013-01-10 16:34:03", | "creation": "2013-01-10 16:34:03", | ||||
"docstatus": 0, | "docstatus": 0, | ||||
"modified": "2014-01-20 17:48:58", | |||||
"modified": "2014-02-18 15:32:49", | |||||
"modified_by": "Administrator", | "modified_by": "Administrator", | ||||
"owner": "Administrator" | "owner": "Administrator" | ||||
}, | }, | ||||
@@ -28,22 +28,15 @@ | |||||
"permlevel": 0 | "permlevel": 0 | ||||
}, | }, | ||||
{ | { | ||||
"amend": 0, | |||||
"cancel": 0, | |||||
"create": 1, | "create": 1, | ||||
"delete": 1, | "delete": 1, | ||||
"doctype": "DocPerm", | "doctype": "DocPerm", | ||||
"email": 1, | |||||
"name": "__common__", | "name": "__common__", | ||||
"parent": "Module Def", | "parent": "Module Def", | ||||
"parentfield": "permissions", | "parentfield": "permissions", | ||||
"parenttype": "DocType", | "parenttype": "DocType", | ||||
"permlevel": 0, | "permlevel": 0, | ||||
"print": 1, | |||||
"read": 1, | "read": 1, | ||||
"report": 1, | |||||
"role": "Administrator", | |||||
"submit": 0, | |||||
"write": 1 | "write": 1 | ||||
}, | }, | ||||
{ | { | ||||
@@ -54,6 +47,17 @@ | |||||
"doctype": "DocField" | "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) | idx = add_to_sitemap(opts) | ||||
if idx and self.doc.idx != idx: | if idx and self.doc.idx != idx: | ||||
self.update_value("idx", idx) | |||||
frappe.conn.set(self.doc, "idx", idx) | |||||
def update_permissions(self, opts): | def update_permissions(self, opts): | ||||
if self.meta.get_field("public_read"): | if self.meta.get_field("public_read"): | ||||