mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	copy code from check_view_access() to check_controller_access()
This commit is contained in:
		
							parent
							
								
									b80cb91d54
								
							
						
					
					
						commit
						94682fb0ff
					
				|  | @ -414,7 +414,8 @@ class SeedDMS_AccessOperation { | |||
| 			$this->_aro = SeedDMS_Aro::getInstance($this->user->getRole(), $this->dms); | ||||
| 		foreach($scripts as $script) { | ||||
| 			$aco = SeedDMS_Aco::getInstance($scope.'/'.$script.'/'.$action, $this->dms); | ||||
| 			if($acl->check($this->_aro, $aco)) | ||||
| 			$ll = $acl->check($this->_aro, $aco); | ||||
| 			if($ll === 1 && !$this->user->isAdmin() || $ll !== -1 && $this->user->isAdmin()) | ||||
| 				return true; | ||||
| 		} | ||||
| 		return false; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann