Skip to content
Snippets Groups Projects
Commit 985b8480 authored by Sergio Fernandez Casado's avatar Sergio Fernandez Casado
Browse files

When adding or editing Shibboleth group rules, Sticky option is always marked and not changeable.

parent 591dd0c0
No related branches found
No related tags found
No related merge requests found
name = CERN Integration
package = CERN
description = Provides CERN site integration for Drupal.
version = "7.X-6"
version = "7.X-1.7"
core = 7.x
dependencies[] = shib_auth
......@@ -9,7 +9,6 @@ files[] = cern_integration.module
files[] = cern_integration.install
project = "cern_integration"
datestamp = "1391098760"
datestamp = "1455099515"
required = TRUE
......@@ -348,9 +348,10 @@ function cern_integration_form_shib_auth_edit_rule_alter(&$form, &$form_state, $
$txt ="<b>Note: <em>ALWAYS</em> enclose regexp in '^$' to limit possible matches !</b> (example: '^some-e-group-at-cern$')";
$form['shib_auth_new_regexp']['#prefix']=t($txt);
$txt ="<b>Note:</b> If a role is set as 'Sticky' it will be granted to user even if that user is removed from corresponding e-group. Non-sticky roles are not visible in user attributes.";
$form['shib_auth_new_sticky']['#prefix']=t($txt);
//$txt ="<b>Note:</b> If a role is set as 'Sticky' it will be granted to user even if that user is removed from corresponding e-group. Non-sticky roles are not visible in user attributes.";
//$form['shib_auth_new_sticky']['#prefix']=t($txt);
$form['shib_auth_new_sticky']['#disabled'] = TRUE;
$form['shib_auth_new_sticky']['#value'] = TRUE;
}
function cern_integration_form_shib_auth_new_rule_alter(&$form, &$form_state, $form_id) {
......@@ -361,8 +362,10 @@ function cern_integration_form_shib_auth_new_rule_alter(&$form, &$form_state, $f
$txt ="<b>Note: <em>ALWAYS</em> enclose regexp in '^$' to limit possible matches !</b> (example: '^some-e-group-at-cern$')";
$form['shib_auth_new_regexp']['#prefix']=t($txt);
$txt ="<b>Note:</b> If a role is set as 'Sticky' it will be granted to user even if that user is removed from corresponding e-group. Non-sticky roles are not visible in user attributes.";
$form['shib_auth_new_sticky']['#prefix']=t($txt);
//$txt ="<b>Note:</b> If a role is set as 'Sticky' it will be granted to user even if that user is removed from corresponding e-group. Non-sticky roles are not visible in user attributes.";
//$form['shib_auth_new_sticky']['#prefix']=t($txt);
$form['shib_auth_new_sticky']['#disabled'] = TRUE;
$form['shib_auth_new_sticky']['#value'] = TRUE;
}
......
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