Skip to content

Commit

Permalink
update missed checking new ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
saiful-izwan committed Apr 23, 2020
1 parent 298fa66 commit e196e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protected/views/organization/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
* or else the data will become null when update for those user that do not have role accessBackend
*/
?>
<div class="<?php echo Yii::app()->user->accessBackend && Yii::app()->user->isSuperAdmin ? '' : 'hide' ?>">
<div class="<?php echo Yii::app()->user->accessBackend && HUB::roleCheckerAction(Yii::app()->user->getState("rolesAssigned"), (object)["id"=>"custom","action"=>(object)["id"=>"superAdmin"]]) ? '' : 'hide' ?>">

<div class="form-group <?php echo $model->hasErrors('is_active') ? 'has-error' : '' ?>">
<?php echo $form->bsLabelEx2($model, 'is_active'); ?>
Expand Down Expand Up @@ -191,7 +191,7 @@
</div>
</div>

<?php if (Yii::app()->user->accessBackend && Yii::app()->user->isSuperAdmin):?>
<?php if (Yii::app()->user->accessBackend && HUB::roleCheckerAction(Yii::app()->user->getState("rolesAssigned"), (object)["id"=>"custom","action"=>(object)["id"=>"superAdmin"]])):?>
<div class="form-group <?php echo $model->hasErrors('tag_backend') ? 'has-error' : '' ?>">
<?php echo $form->bsLabelEx2($model, 'tag_backend'); ?>
<div class="col-sm-10">
Expand Down

0 comments on commit e196e19

Please sign in to comment.