mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
do not show 'AddFile' link if access is not allowed
This commit is contained in:
parent
4fe435f450
commit
390a653b94
|
@ -1524,9 +1524,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
else printMLText("no_attached_files");
|
||||
|
||||
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();
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user