AAAAauthenticator.ctp 0000666 00000010366 15137433634 0010151 0 ustar 00
Header(array('settings' => 'Settings', 'help' => 'Help'), 'authenticator_config_{n}'); ?>
tabStart('settings'); ?>
RELEASE > 1.5){
$options = $action_params['groups_list'];
}else{
$options = $action_params['groups_list'];
//$options = array(18 => 'Registered users', 19 => 'Authors', 20 => 'Editors', 21 => 'Publishers', 23 => 'Managers', 24 => 'Administrators', 25 => 'Super Administrators');
}
?>
input('action_authenticator_{n}_groups_config', array('type' => 'select', 'label' => 'Allowed groups', 'options' => $options, 'size' => 11, 'class' => 'medium_input', 'multiple' => 'multiple', 'rule' => "split", 'splitter' => ",", 'smalldesc' => 'Select the groups authorized.')); ?>
input('action_authenticator_{n}_guests_config', array('type' => 'select', 'label' => 'Allow guests', 'options' => array(0 => 'No', 1 => 'Yes'), 'class' => 'medium_input', 'smalldesc' => "Guests are non logged in users, choose wheather you want to allow them access or not.")); ?>
input('action_authenticator_{n}_inheritable_config', array('type' => 'select', 'label' => 'Inheritable Permissions', 'options' => array(0 => 'No', 1 => 'Yes'), 'class' => 'medium_input', 'smalldesc' => "Enable this if you want sub groups to inherit the access permissions of their parents.")); ?>
input('action_authenticator_{n}_denied_groups_config', array('type' => 'select', 'label' => 'Denied groups', 'options' => $options, 'size' => 11, 'class' => 'medium_input', 'multiple' => 'multiple', 'rule' => "split", 'splitter' => ",", 'smalldesc' => 'Select the groups denied, this is useful only if you have the "Inheritable" option set to "Yes".')); ?>
input('action_authenticator_{n}_content1_config', array('type' => 'textarea', 'label' => "Code", 'rows' => 20, 'cols' => 70, 'smalldesc' => 'any code can be placed here, any PHP code should include the PHP tags.')); ?>
tabEnd(); ?>
tabStart('help'); ?>
- Select which user groups should be allowed access.
- Permissions are not inheritable by default, this means that if you need to allow both the "Public" group and the "Administrators" group then you need to select BOTH of them.
- If the user's group is Allowed AND Denied then the authentication will fail leading to a denied.
- Insert next form events in the "Allowed" event or insert "Show stopper" in the "Denied" event to halt the form.
tabEnd(); ?>