mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	pass object for AccessOperation to view
This commit is contained in:
		
							parent
							
								
									aa80f28de1
								
							
						
					
					
						commit
						2c07910fa9
					
				|  | @ -23,6 +23,7 @@ include("../inc/inc.Utils.php"); | |||
| include("../inc/inc.DBInit.php"); | ||||
| include("../inc/inc.Language.php"); | ||||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.ClassAccessOperation.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { | ||||
|  | @ -56,9 +57,13 @@ if (!is_object($version)) { | |||
| 
 | ||||
| $folder = $document->getFolder(); | ||||
| 
 | ||||
| /* Create object for checking access to certain operations */ | ||||
| $accessop = new SeedDMS_AccessOperation($document, $user, $settings); | ||||
| 
 | ||||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'version'=>$version)); | ||||
| if($view) { | ||||
| 	$view->setParam('accessobject', $accessop); | ||||
| 	$view->show(); | ||||
| 	exit; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann