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:
@@ -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
|
||||
|
Reference in New Issue
Block a user