mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-30 04:31:19 +00:00
pass $document to mayEditVersion()
This commit is contained in:
parent
a693233150
commit
50cfb869e2
|
|
@ -523,7 +523,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
print "</ul>";
|
print "</ul>";
|
||||||
print "<ul class=\"unstyled actions\">";
|
print "<ul class=\"unstyled actions\">";
|
||||||
if($accessop->mayEditVersion()) {
|
if($accessop->mayEditVersion($document)) {
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user