#105698 by dww. Edit permissions links for all roles, including anonymous and authenticated.
parent
98529b936b
commit
f46f6abeae
|
@ -1968,11 +1968,12 @@ function user_admin_role_submit($form_id, $form_values) {
|
||||||
function theme_user_admin_new_role($form) {
|
function theme_user_admin_new_role($form) {
|
||||||
$header = array(t('Name'), array('data' => t('Operations'), 'colspan' => 2));
|
$header = array(t('Name'), array('data' => t('Operations'), 'colspan' => 2));
|
||||||
foreach (user_roles() as $rid => $name) {
|
foreach (user_roles() as $rid => $name) {
|
||||||
|
$edit_permissions = l(t('edit permissions'), 'admin/user/access/'. $rid);
|
||||||
if (!in_array($rid, array(DRUPAL_ANONYMOUS_RID, DRUPAL_AUTHENTICATED_RID))) {
|
if (!in_array($rid, array(DRUPAL_ANONYMOUS_RID, DRUPAL_AUTHENTICATED_RID))) {
|
||||||
$rows[] = array($name, l(t('edit permissions'), 'admin/user/access/'. $rid), l(t('edit role'), 'admin/user/roles/edit/'. $rid));
|
$rows[] = array($name, l(t('edit role'), 'admin/user/roles/edit/'. $rid), $edit_permissions);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$rows[] = array($name, array('data' => t('locked'), 'colspan' => 2));
|
$rows[] = array($name, t('locked'), $edit_permissions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$rows[] = array(drupal_render($form['name']), array('data' => drupal_render($form['submit']), colspan => 2));
|
$rows[] = array(drupal_render($form['name']), array('data' => drupal_render($form['submit']), colspan => 2));
|
||||||
|
|
Loading…
Reference in New Issue