##// END OF EJS Templates
auth: don't check for delegated admin if we are super admin.
marcink -
r3588:9ddb7b46 new-ui
parent child Browse files
Show More
@@ -176,7 +176,7 b' class BaseAppView(object):'
176
176
177 c.is_delegated_admin = False
177 c.is_delegated_admin = False
178
178
179 if not c.auth_user.is_default:
179 if not c.auth_user.is_default and not c.is_super_admin:
180 c.can_create_repo = h.HasPermissionAny('hg.create.repository')(
180 c.can_create_repo = h.HasPermissionAny('hg.create.repository')(
181 user=self.request.user)
181 user=self.request.user)
182 repositories = c.auth_user.repositories_admin or c.can_create_repo
182 repositories = c.auth_user.repositories_admin or c.can_create_repo
General Comments 0
You need to be logged in to leave comments. Login now