X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/cf5d51e7b8c9172906f7943d2d70b6b37801a2c4..refs/pull/2515/head:/resources/views/users/edit.blade.php diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index ff1e7cbe5..7fb12bd75 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -8,7 +8,7 @@
-

{{ $user->id === $currentUser->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}

+

{{ $user->id === user()->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}

id}") }}" method="post" enctype="multipart/form-data"> {!! csrf_field() !!} @@ -54,7 +54,7 @@
- @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0) + @if(user()->id === $user->id && count($activeSocialDrivers) > 0)

{{ trans('settings.users_social_accounts') }}

{{ trans('settings.users_social_accounts_info') }}

@@ -87,6 +87,10 @@
@endif + + @if((user()->id === $user->id && userCan('access-api')) || userCan('users-manage')) + @include('users.api-tokens.list', ['user' => $user]) + @endif @stop