Skip to content

Commit

Permalink
Fixed issue: Original superadmin (UID 1) should always be able to edi…
Browse files Browse the repository at this point in the history
…t other users passwords
  • Loading branch information
c-schmitz committed Apr 10, 2020
1 parent 7e7b495 commit a42beed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/admin/user/modifyuser.php
Expand Up @@ -47,7 +47,7 @@
</div>
</div>

<?php if( !Permission::model()->hasGlobalPermission('superadmin','read', $oUser->uid) || (Permission::model()->hasGlobalPermission('superadmin','read', $oUser->uid) && Yii::app()->session['loginID']==1)): ?>
<?php if( !Permission::model()->hasGlobalPermission('superadmin','read', $oUser->uid) || (Permission::isForcedSuperAdmin(Permission::getUserId())) ): ?>
<div class="form-group">
<label for="password" class=" control-label">
<?php eT("Password");?>
Expand Down

0 comments on commit a42beed

Please sign in to comment.