Remove impersonation button on user detail page if feature is disabled

The impersonation button in the user list is already removed when the impersonation feature is disabled. Remove the button from the detail page too.
This commit is contained in:
Johann Schmitz 2020-04-27 09:46:44 +02:00 committed by Stan Silvert
parent 1f462a2ae2
commit 600fd83078

View file

@ -121,7 +121,7 @@
</div> </div>
</div> </div>
<div class="form-group clearfix" data-ng-hide="create || !access.impersonation"> <div class="form-group clearfix" data-ng-hide="create || !access.impersonation || !serverInfo.featureEnabled('IMPERSONATION')">
<label class="col-md-2 control-label" for="impersonate">{{:: 'impersonate-user' | translate}}</label> <label class="col-md-2 control-label" for="impersonate">{{:: 'impersonate-user' | translate}}</label>
<div class="col-md-6"> <div class="col-md-6">