mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
role added in some pages
This commit is contained in:
@@ -3,9 +3,10 @@ import webnotes.model
|
||||
def execute():
|
||||
for p in ["activity", "todo", "questions", "question-view"]:
|
||||
pbean = webnotes.bean("Page", p)
|
||||
pbean.doclist.append({
|
||||
"doctype": "Page Role",
|
||||
"role": "All",
|
||||
"parentfield": "roles"
|
||||
})
|
||||
pbean.save()
|
||||
if len(pbean.doclist) == 1:
|
||||
pbean.doclist.append({
|
||||
"doctype": "Page Role",
|
||||
"role": "All",
|
||||
"parentfield": "roles"
|
||||
})
|
||||
pbean.save()
|
||||
Reference in New Issue
Block a user