File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public static function getSystemRole(string $systemName): ?Role
92
92
}
93
93
94
94
/**
95
- * Get all visible roles
95
+ * Get all visible roles.
96
96
*/
97
97
public static function visible (): Collection
98
98
{
@@ -104,7 +104,10 @@ public static function visible(): Collection
104
104
*/
105
105
public static function restrictable (): Collection
106
106
{
107
- return static ::query ()->where ('system_name ' , '!= ' , 'admin ' )->get ();
107
+ return static ::query ()
108
+ ->where ('system_name ' , '!= ' , 'admin ' )
109
+ ->orderBy ('display_name ' , 'asc ' )
110
+ ->get ();
108
111
}
109
112
110
113
/**
Original file line number Diff line number Diff line change 25
25
<table permissions-table class =" table permissions-table toggle-switch-list" style =" {{ ! $model -> restricted ? ' display: none' : ' ' } }" >
26
26
<tr >
27
27
<th >{{ trans (' common.role' ) } } </th >
28
- <th @if ( $model -> isA (' page' )) colspan = " 3 " @else colspan = " 4 " @endif >
28
+ <th colspan = " {{ $model -> isA (' page' ) ? ' 3 ' : ' 4 ' } } " >
29
29
{{ trans (' common.actions' ) } }
30
30
<a href =" #" permissions-table-toggle-all class =" text-small ml-m text-primary" >{{ trans (' common.toggle_all' ) } } </a >
31
31
</th >
You can’t perform that action at this time.
0 commit comments