mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-16 00:51:59 +08:00
@ -92,7 +92,7 @@ class Role extends Model implements Loggable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all visible roles
|
* Get all visible roles.
|
||||||
*/
|
*/
|
||||||
public static function visible(): Collection
|
public static function visible(): Collection
|
||||||
{
|
{
|
||||||
@ -104,7 +104,10 @@ class Role extends Model implements Loggable
|
|||||||
*/
|
*/
|
||||||
public static function restrictable(): Collection
|
public static function restrictable(): Collection
|
||||||
{
|
{
|
||||||
return static::query()->where('system_name', '!=', 'admin')->get();
|
return static::query()
|
||||||
|
->where('system_name', '!=', 'admin')
|
||||||
|
->orderBy('display_name', 'asc')
|
||||||
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<table permissions-table class="table permissions-table toggle-switch-list" style="{{ !$model->restricted ? 'display: none' : '' }}">
|
<table permissions-table class="table permissions-table toggle-switch-list" style="{{ !$model->restricted ? 'display: none' : '' }}">
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ trans('common.role') }}</th>
|
<th>{{ trans('common.role') }}</th>
|
||||||
<th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>
|
<th colspan="{{ $model->isA('page') ? '3' : '4' }}">
|
||||||
{{ trans('common.actions') }}
|
{{ trans('common.actions') }}
|
||||||
<a href="#" permissions-table-toggle-all class="text-small ml-m text-primary">{{ trans('common.toggle_all') }}</a>
|
<a href="#" permissions-table-toggle-all class="text-small ml-m text-primary">{{ trans('common.toggle_all') }}</a>
|
||||||
</th>
|
</th>
|
||||||
|
Reference in New Issue
Block a user