Add ability to update superusers via the UI

Fixes #634
This commit is contained in:
Joseph Schorr 2015-10-16 15:38:06 -04:00
parent a37b9394d9
commit d464af4cce
3 changed files with 49 additions and 1 deletions

View file

@ -185,6 +185,17 @@
<td style="text-align: center;">
<span class="cor-options-menu"
ng-if="user.username != current_user.username && !current_user.super_user">
<span class="cor-option" option-click="setSuperuser(current_user, true)"
quay-show="!current_user.super_user">
<i class="fa">&Omega;</i>
Make Superuser
</span>
<span class="cor-option" option-click="setSuperuser(current_user, false)"
quay-show="current_user.super_user">
<i class="fa">&omega;</i>
Remove Superuser
</span>
<span class="cor-option" option-click="showChangeEmail(current_user)"
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
<i class="fa fa-envelope-o"></i> Change E-mail Address