diff --git a/app/Auth/Role.php b/app/Auth/Role.php index 629cd6a95..59b1f547c 100644 --- a/app/Auth/Role.php +++ b/app/Auth/Role.php @@ -92,7 +92,7 @@ class Role extends Model implements Loggable } /** - * Get all visible roles + * Get all visible roles. */ public static function visible(): Collection { @@ -104,7 +104,10 @@ class Role extends Model implements Loggable */ 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(); } /** diff --git a/resources/views/form/entity-permissions.blade.php b/resources/views/form/entity-permissions.blade.php index 6cf5ab8bd..d3e89cc44 100644 --- a/resources/views/form/entity-permissions.blade.php +++ b/resources/views/form/entity-permissions.blade.php @@ -25,7 +25,7 @@ -
{{ trans('common.role') }}isA('page')) colspan="3" @else colspan="4" @endif> + {{ trans('common.actions') }} {{ trans('common.toggle_all') }}