Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed the template (added url to the home page); changed the place …

…where the administrative rights are checked
  • Loading branch information...
commit 7954edb4905566e3696ecfa402053f07d1745492 1 parent a12d70d
@sa2ajj authored
Showing with 4 additions and 3 deletions.
  1. +3 −2 authz-admin
  2. +1 −1  authz-admin.tmpl
View
5 authz-admin
@@ -62,11 +62,11 @@ if __name__ == '__main__':
# see if the user authorized to perform certain operations
if user is not None:
- if not af.member(user, 'authz-admin-<super>'):
+ if not af.admin(user, 'super'):
ro_groups = 'readonly'
disable_groups = 'disabled'
- if not af.member(user, 'authz-admin-%s' % current_repo_name): # it's gonna be ugly authz-admin-<global>
+ if not af.member(user, 'repo-%s' % current_repo_name): # it's gonna be ugly authz-admin-<global>
ro_acls = 'readonly'
disable_acls = 'disabled'
@@ -129,6 +129,7 @@ if __name__ == '__main__':
'repo_acls' : ''.join(acls),
'ro_acls' : ro_acls,
'disable_acls' : disable_acls,
+ 'appurl' : 'http://only.mawhrin.net/~mss/thingies/authz/',
'appname' : 'authz-tools',
'appversion' : '0.6.2'
}
View
2  authz-admin.tmpl
@@ -30,7 +30,7 @@
</form>
<hr/>
-<div align="right">Powered by %(appname)s %(appversion)s</div>
+<div align="right">Powered by <a href="%(appurl)s">%(appname)s</a> %(appversion)s</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.