Skip to content

Commit b049964

Browse files
committed
Fix permissions check. Use role not perm check.
1 parent 9986225 commit b049964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/issues/extensions/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_status_of_module(module, prefix=None, version=True):
102102
info.append(get_status_of_module('jinja2') + "<br>")
103103

104104
uid = db._db.getuid()
105-
if uid == "1" or db._db.security.hasPermission("Admin", uid):
105+
if uid == "1" or db._db.user.has_role(uid,"Admin"):
106106
#may leak sensitive info about system, directory paths etc.
107107
#and keys so require admin user access. Consider expanding
108108
#to Admin rights for tracker.

0 commit comments

Comments
 (0)