Skip to content
Snippets Groups Projects
Commit e4eda66b authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed handling of legacy and subscriber config options FS#2208

This was broken in 3a48618a
parent 5eb135e6
No related branches found
No related tags found
No related merge requests found
......@@ -241,13 +241,13 @@ function actionOK($action){
// prepare disabled actions array and handle legacy options
$disabled = explode(',',$conf['disableactions']);
$disabled = array_map('trim',$disabled);
if(!empty($conf['openregister']) || is_null($auth) || !$auth->canDo('addUser')) {
if((isset($conf['openregister']) && !$conf['openregister']) || is_null($auth) || !$auth->canDo('addUser')) {
$disabled[] = 'register';
}
if(!empty($conf['resendpasswd']) || is_null($auth) || !$auth->canDo('modPass')) {
if((isset($conf['resendpasswd']) && !$conf['resendpasswd']) || is_null($auth) || !$auth->canDo('modPass')) {
$disabled[] = 'resendpwd';
}
if(!empty($conf['subscribers']) || is_null($auth)) {
if((isset($conf['subscribers']) && !$conf['subscribers']) || is_null($auth)) {
$disabled[] = 'subscribe';
}
if (is_null($auth) || !$auth->canDo('Profile')) {
......
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