Changeset 1180:0bd1043157ae


Ignore:
Timestamp:
06/26/11 23:39:33 (2 years ago)
Author:
Carsten Senger <senger@…>
Branch:
bundestag
Message:

use has() instead of has_permission() to show/hide the edit badges button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adhocracy/templates/user/tiles.html

    r1173 r1180  
    3535                %endif 
    3636 
    37                 %if has_permission('global_admin'): 
     37                %if lib.auth.authorization.has('global.admin'): 
    3838                        <a class="button edit" href="${h.entity_url(user, member='badges')}">${_("Edit Badges")}</a> 
    3939                %endif 
Note: See TracChangeset for help on using the changeset viewer.