Merge pull request #1181 from anandpdoshi/hotfix-allow-roles

[minor] [fix] allow roles
This commit is contained in:
Pratik Vyas 2013-12-16 22:19:34 -08:00
commit 3ddd0d89df

View File

@ -233,8 +233,9 @@ items = [
"route": "Report/Scheduler Log", "type": "Link", "icon": "icon-exclamation-sign" },
]
@webnotes.whitelist(allow_roles=["System Manager"])
@webnotes.whitelist()
def get():
webnotes.only_for("System Manager")
for item in items:
if item.get("type")=="Section":
continue