Skip to content

Commit

Permalink
fix role issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Mar 15, 2024
1 parent 611982e commit eccfd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/users/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
@endif

</div>
@if (($user->role==1)||($user->role==2))
@if ((Auth::User()->role === 1)||(Auth::User()->role === 2)) {
<div class="row">
<div class="cell-2">
<strong>{{ trans('cruds.user.fields.controls') }}</strong>
Expand Down

0 comments on commit eccfd70

Please sign in to comment.