diff rhodecode/templates/admin/users_groups/users_groups.html @ 3737:46b17730ca32 beta

implemented usergroup permissions checks. - each user who has now explicit or inherited permissions can create usersgrous - user is automatically an admin of that usergroup, and can manage it
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 10 Apr 2013 23:45:04 +0200
parents a8f520540ab0
children 7236ae349494
line wrap: on
line diff
--- a/rhodecode/templates/admin/users_groups/users_groups.html	Wed Apr 10 23:15:00 2013 +0200
+++ b/rhodecode/templates/admin/users_groups/users_groups.html	Wed Apr 10 23:45:04 2013 +0200
@@ -21,10 +21,11 @@
     <div class="title">
         ${self.breadcrumbs()}
         <ul class="links">
+        %if h.HasPermissionAny('hg.usergroup.create.true')():
           <li>
             <span>${h.link_to(_(u'Add new user group'),h.url('new_users_group'))}</span>
           </li>
-
+        %endif
         </ul>
     </div>
     <!-- end box / title -->