Show a user's roles in the preferences page

This commit is contained in:
Eelco Dolstra 2013-07-09 13:07:04 +02:00
parent 476203d0bb
commit 895f21cfad

View file

@ -69,11 +69,11 @@
</div>
[% END %]
[% IF !create && c.check_user_roles('admin') %]
[% IF !create %]
<div class="control-group">
<label class="control-label">Roles</label>
<div class="controls">
<select multiple name="roles" class="span3">
<select multiple name="roles" class="span3" [% IF !c.check_user_roles('admin') %]disabled="1"[% END %]>
[% INCLUDE roleoption role="admin" %]
[% INCLUDE roleoption role="create-project" %]
</select>