forked from lix-project/hydra
Show a user's roles in the preferences page
This commit is contained in:
parent
476203d0bb
commit
895f21cfad
|
@ -69,11 +69,11 @@
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% IF !create && c.check_user_roles('admin') %]
|
[% IF !create %]
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">Roles</label>
|
<label class="control-label">Roles</label>
|
||||||
<div class="controls">
|
<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="admin" %]
|
||||||
[% INCLUDE roleoption role="create-project" %]
|
[% INCLUDE roleoption role="create-project" %]
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in a new issue