mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
show message if document may not be checked in
This commit is contained in:
parent
67d6191024
commit
a7579f47ae
|
@ -104,6 +104,21 @@ $(document).ready(function() {
|
|||
print "</div>";
|
||||
}
|
||||
|
||||
$checkoutinfo = $document->getCheckOutInfo();
|
||||
if(!$checkoutinfo) {
|
||||
$this->errorMsg(getMLText('error_occured'));
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
exit;
|
||||
}
|
||||
$info = $checkoutinfo[0];
|
||||
if($user->getID() != $info['userID'] && $document->getAccessMode($user) < M_ALL) {
|
||||
$this->errorMsg(getMLText('access_denied'));
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($checkoutstatus = $document->checkOutStatus()) {
|
||||
switch($checkoutstatus) {
|
||||
case 1:
|
||||
|
@ -117,7 +132,6 @@ $(document).ready(function() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
$checkoutinfo = $document->getCheckOutInfo();
|
||||
|
||||
$this->rowStart();
|
||||
if($checkoutstatus == 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user