mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	add acl check
This commit is contained in:
		
							parent
							
								
									3f6420a6d4
								
							
						
					
					
						commit
						c5435e0a27
					
				|  | @ -30,8 +30,8 @@ include("../inc/inc.Authentication.php"); | |||
| 
 | ||||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); | ||||
| 
 | ||||
| if (!$user->isAdmin()) { | ||||
| $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); | ||||
| if (!$accessop->check_view_access($view, $_GET) && !$user->isAdmin()) { | ||||
| 	UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann