mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
revisors may not be set unless document is release or in revision
This commit is contained in:
parent
6deefda545
commit
50a39d439a
|
@ -167,7 +167,7 @@ class SeedDMS_AccessOperation {
|
||||||
if(get_class($document) == $this->dms->getClassname('document')) {
|
if(get_class($document) == $this->dms->getClassname('document')) {
|
||||||
$latestContent = $document->getLatestContent();
|
$latestContent = $document->getLatestContent();
|
||||||
$status = $latestContent->getStatus();
|
$status = $latestContent->getStatus();
|
||||||
if (($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin() /* && ($status["status"]==S_RELEASED || $status["status"]==S_IN_REVISION)*/) {
|
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_RELEASED || $status["status"]==S_IN_REVISION)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -317,7 +317,7 @@ class SeedDMS_AccessOperation {
|
||||||
* Check if document content may be revised
|
* Check if document content may be revised
|
||||||
*
|
*
|
||||||
* Revising a document content is only allowed if the document was not
|
* Revising a document content is only allowed if the document was not
|
||||||
* obsoleted. There are other requirements which are not taken into
|
* obsoleted. There may be other requirements which are not taken into
|
||||||
* account here.
|
* account here.
|
||||||
*/
|
*/
|
||||||
function mayRevise($document) { /* {{{ */
|
function mayRevise($document) { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user