Skip to content

Commit

Permalink
Improve basicinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjinghua committed Nov 14, 2016
1 parent 435d2f7 commit e93da9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/users/partials/basicinfo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<hr>
@endif

@if ($currentUser && ($currentUser->id == $user->id || Entrust::can('manage_users')))
@if ($currentUser && (($currentUser->id != $user->id) && $currentUser->roles->count() < 5 || Entrust::can('manage_users')))
<a class="btn btn-primary btn-block" href="{{ route('users.edit', $user->id) }}" id="user-edit-button">
<i class="fa fa-edit"></i> {{ lang('Edit Profile') }}
</a>
Expand Down

0 comments on commit e93da9b

Please sign in to comment.