Commit e8f349fd authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Disable grants setting for admin users

parent 791641db
......@@ -12,20 +12,17 @@ ment">
</div> <!-- del panel heading-->
</div>
<ul class="nav nav-tabs" id="myTab">
<li class="nav active"><a href="#permissions" data-toggle="tab">Permissions</a></li>
% if ( $_user->is_admin ) {
<li class="nav"><a href="#admin" data-toggle="tab">Admin</a></li>
<li class="nav active"><a href="#admin" data-toggle="tab">Admin</a></li>
% }
</ul>
<div class="tab-content">
% if ( $_user->is_admin ) {
<div class="tab-pane fade" id="admin" >
%= include '/main/manage_user_admin'
<div class="tab-pane fade in active" id="admin" >
%= include '/main/manage_user_admin'
</div>
% }
</div>
<div class="tab-pane fade in active" id="permissions" >
%= include '/main/manage_user_grants'
</div>
</div>
<div>
......
......@@ -2,6 +2,6 @@
% my $checked = '';
% $checked = 'checked' if $user->is_admin;
<input type="checkbox" name="is_admin" value="1" <%= $checked %>>
<label for="is_admin">is admin</label>
<label for="is_admin">is admin</label><br/>
<input type="submit" name="make_admin">
</form>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment