1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

User form: Always show external auth field, update access control

Updated old user management routes to only be accessible with permission
to manage users, so also removed old content controls checking for that
permission.
This commit is contained in:
Dan Brown
2023-10-19 10:20:04 +01:00
parent e4ea73ee25
commit cf72e48d2a
4 changed files with 27 additions and 38 deletions

View File

@@ -38,7 +38,7 @@
</div>
<div class="text-right">
<a href="{{ url(userCan('users-manage') ? "/settings/users" : "/") }}"
<a href="{{ url("/settings/users") }}"
class="button outline">{{ trans('common.cancel') }}</a>
@if($authMethod !== 'system')
<a href="{{ url("/settings/users/{$user->id}/delete") }}"
@@ -100,9 +100,7 @@
</section>
@endif
@if((user()->id === $user->id && userCan('access-api')) || userCan('users-manage'))
@include('users.api-tokens.parts.list', ['user' => $user])
@endif
@include('users.api-tokens.parts.list', ['user' => $user])
</div>
@stop