浏览代码

reset perms of module def

version-14
Nabin Hait 11 年前
父节点
当前提交
b004791fd4
共有 2 个文件被更改,包括 14 次插入10 次删除
  1. +13
    -9
      frappe/core/doctype/module_def/module_def.txt
  2. +1
    -1
      frappe/website/website_generator.py

+ 13
- 9
frappe/core/doctype/module_def/module_def.txt 查看文件

@@ -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"
}
]

+ 1
- 1
frappe/website/website_generator.py 查看文件

@@ -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"):


正在加载...
取消
保存