mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
do not allow to edit content if file doesn't exist
This commit is contained in:
parent
bd67ea6abd
commit
d47982a671
|
@ -488,9 +488,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
print "</ul>";
|
print "</ul>";
|
||||||
print "<ul class=\"unstyled actions\">";
|
print "<ul class=\"unstyled actions\">";
|
||||||
|
if ($file_exists){
|
||||||
if($accessop->mayEditVersion()) {
|
if($accessop->mayEditVersion()) {
|
||||||
print "<li><a href=\"out.EditOnline.php?documentid=".$documentid."&version=".$latestContent->getVersion()."\"><i class=\"icon-edit\"></i>".getMLText("edit_version")."</a></li>";
|
print "<li><a href=\"out.EditOnline.php?documentid=".$documentid."&version=".$latestContent->getVersion()."\"><i class=\"icon-edit\"></i>".getMLText("edit_version")."</a></li>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* Only admin has the right to remove version in any case or a regular
|
/* Only admin has the right to remove version in any case or a regular
|
||||||
* user if enableVersionDeletion is on
|
* user if enableVersionDeletion is on
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user