mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	do not show 'AddFile' link if access is not allowed
This commit is contained in:
		
							parent
							
								
									4fe435f450
								
							
						
					
					
						commit
						390a653b94
					
				|  | @ -1524,8 +1524,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { | |||
| 		} | ||||
| 		else printMLText("no_attached_files"); | ||||
| 
 | ||||
| 		if ($document->getAccessMode($user) >= M_READWRITE){ | ||||
| 			print "<ul class=\"unstyled\"><li>".$this->html_link('AddFile', array('documentid'=>$documentid), array('class'=>'btn'), getMLText("add"), false, true)."</li></ul>\n"; | ||||
| 		if($this->check_access('AddFile')) { | ||||
| 			if ($document->getAccessMode($user) >= M_READWRITE){ | ||||
| 				print "<ul class=\"unstyled\"><li>".$this->html_link('AddFile', array('documentid'=>$documentid), array('class'=>'btn'), getMLText("add"), false, true)."</li></ul>\n"; | ||||
| 			} | ||||
| 		} | ||||
| 		$this->contentContainerEnd(); | ||||
| ?>
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann