소스 검색

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

+ 1
- 1
frappe/website/website_generator.py 파일 보기

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


불러오는 중...
취소
저장