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

disable ACL commands if ACL is disabled FS#732

darcs-hash:20060307165127-7ad00-b11a8cab6d904745998d5648911bee9fcd55af61.gz
parent 36223ba7
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ function act_dispatch(){
*/
function act_clean($act){
global $lang;
global $conf;
//handle localized buttons
if($act == $lang['btn_save']) $act = 'save';
......@@ -127,6 +128,14 @@ function act_clean($act){
if($act == 'export_html') $act = 'export_xhtml';
if($act == 'export_htmlbody') $act = 'export_xhtmlbody';
//disable all acl related commands if ACL is disabled
if(!$conf['useacl'] && in_array($act,array('login','logout','register','admin',
'subscribe','unsubscribe','profile',
'resendpwd',))){
msg('Command unavailable: '.htmlspecialchars($act),-1);
return 'show';
}
if(array_search($act,array('login','logout','register','save','edit',
'preview','search','show','check','index','revisions',
'diff','recent','backlink','admin','subscribe',
......
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