Skip to content
Snippets Groups Projects
Commit b266473c authored by Tim Steiner's avatar Tim Steiner
Browse files

Merging from trunk to testing.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/testing@255 20a16fea-79d4-4915-8869-1ea9d5ebf173
parents f555e278 6363fa59
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ function unl_form_alter(&$form, $form_state, $form_id) {
$form['#submit'][] = 'unl_system_settings_form_submit';
}
if ($form_id == 'user_admin_permissions' && !user_access('unl grant all permissions')) {
if ($form_id == 'user_admin_permissions' && !user_access('unl grant all permissions') && !in_array(variable_get('user_admin_role', -1), array_keys($GLOBALS['user']->roles))) {
// Remove permissions this user doesn't have from the headings list.
foreach ($form['permission'] as $permission => $sub_form) {
if (is_int($permission)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment