do not under any circumstances allow a delegated forum admin to access the site admin page.
This commit is contained in:
		| @@ -9,6 +9,10 @@ function admin_post(&$a){ | ||||
| 	if(!is_site_admin()) { | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
|  | ||||
| 	if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) | ||||
| 		return; | ||||
| 	 | ||||
| 	// urls | ||||
| 	if ($a->argc > 1){ | ||||
| @@ -50,6 +54,9 @@ function admin_content(&$a) { | ||||
| 		return login(false); | ||||
| 	} | ||||
|  | ||||
| 	if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) | ||||
| 		return; | ||||
|  | ||||
| 	/** | ||||
| 	 * Side bar links | ||||
| 	 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user