Disable superuser functions around users when not using DB auth
This commit is contained in:
parent
2f42a4d94d
commit
ad5beab3ef
2 changed files with 26 additions and 4 deletions
|
@ -140,9 +140,13 @@
|
|||
</div>
|
||||
<div ng-show="users">
|
||||
<div class="manager-header" header-title="Users">
|
||||
<button class="create-button btn btn-primary" ng-click="showCreateUser()">
|
||||
<button class="create-button btn btn-primary" ng-click="showCreateUser()"
|
||||
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
||||
<i class="fa fa-plus" style="margin-right: 6px;"></i>Create User
|
||||
</button>
|
||||
<span class="co-alert co-alert-info" quay-show="Config.AUTHENTICATION_TYPE != 'Database'">
|
||||
Note: <span class="registry-name"></span> is configured to use external authentication, so users can only be created in that system
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="filter-box" collection="users" filter-model="search" filter-name="Users"></div>
|
||||
|
@ -177,14 +181,16 @@
|
|||
<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="showChangeEmail(current_user)">
|
||||
<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
|
||||
</span>
|
||||
<span class="cor-option" option-click="showChangePassword(current_user)">
|
||||
<span class="cor-option" option-click="showChangePassword(current_user)"
|
||||
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
||||
<i class="fa fa-key"></i> Change Password
|
||||
</span>
|
||||
<span class="cor-option" option-click="sendRecoveryEmail(current_user)"
|
||||
quay-show="Features.MAILING">
|
||||
quay-show="Features.MAILING && Config.AUTHENTICATION_TYPE == 'Database'">
|
||||
<i class="fa fa-envelope"></i> Send Recovery E-mail
|
||||
</span>
|
||||
<span class="cor-option" option-click="showDeleteUser(current_user)">
|
||||
|
|
Reference in a new issue