Commit f46f6abe authored by drumm's avatar drumm
Browse files

#105698 by dww. Edit permissions links for all roles, including anonymous and authenticated.

parent 98529b93
......@@ -1968,11 +1968,12 @@ function user_admin_role_submit($form_id, $form_values) {
function theme_user_admin_new_role($form) {
$header = array(t('Name'), array('data' => t('Operations'), 'colspan' => 2));
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))) {
$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 {
$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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment