do not under any circumstances allow a delegated forum admin to access the site admin page.
This commit is contained in:
parent
48f5bd492d
commit
0500fc2826
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,10 @@ function admin_post(&$a){
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
return;
|
||||
|
||||
// urls
|
||||
if ($a->argc > 1){
|
||||
switch ($a->argv[1]){
|
||||
|
@ -50,6 +54,9 @@ function admin_content(&$a) {
|
|||
return login(false);
|
||||
}
|
||||
|
||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||
return;
|
||||
|
||||
/**
|
||||
* Side bar links
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue