mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
propperly check for access right
This commit is contained in:
parent
4173dbcd20
commit
3b0d239a00
|
@ -72,7 +72,7 @@ if ($latestContent->getVersion()!=$version) {
|
|||
$accessop = new SeedDMS_AccessOperation($document, $user, $settings);
|
||||
|
||||
// verify if document may be approved
|
||||
if ($accessop->mayApprove()){
|
||||
if (!$accessop->mayApprove()){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ if ($latestContent->getVersion()!=$version) {
|
|||
$accessop = new SeedDMS_AccessOperation($document, $user, $settings);
|
||||
|
||||
// verify if document may be reviewed
|
||||
if ($accessop->mayReview()){
|
||||
if (!$accessop->mayReview()){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ if ($latestContent->getVersion()!=$version) {
|
|||
}
|
||||
|
||||
// verify if document may be approved
|
||||
if ($accessop->mayApprove()){
|
||||
if (!$accessop->mayApprove()){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ if ($latestContent->getVersion()!=$version) {
|
|||
$accessop = new SeedDMS_AccessOperation($document, $user, $settings);
|
||||
|
||||
// verify if document may be reviewed
|
||||
if ($accessop->mayReview()){
|
||||
if (!$accessop->mayReview()){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user