role administration MDL-20413 up arrow next to top-most role in admin -> users -> permissions -> define roles
This commit is contained in:
@@ -221,6 +221,7 @@
|
||||
|
||||
/// Print a list of roles with edit/copy/delete/reorder icons.
|
||||
$table->data = array();
|
||||
$firstrole = reset($roles);
|
||||
$lastrole = end($roles);
|
||||
foreach ($roles as $role) {
|
||||
|
||||
@@ -234,7 +235,7 @@
|
||||
|
||||
/// Icons:
|
||||
// move up
|
||||
if ($role->sortorder != 0) {
|
||||
if ($role->sortorder != $firstrole->sortorder) {
|
||||
$row[3] .= get_action_icon($baseurl . '?action=moveup&roleid=' . $role->id . '&sesskey=' . sesskey(), 'up', $strmoveup, $strmoveup);
|
||||
} else {
|
||||
$row[3] .= get_spacer();
|
||||
|
||||
Reference in New Issue
Block a user