mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
initial test of flash msg
This commit is contained in:
parent
b5caa801b6
commit
b4cdef804e
|
@ -51,6 +51,8 @@ if (!$document->setLocked($user)) {
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document locked'));
|
||||||
|
|
||||||
add_log_line();
|
add_log_line();
|
||||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,9 @@ if (($lockingUser->getID() == $user->getID()) || ($document->getAccessMode($user
|
||||||
else {
|
else {
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document unlocked'));
|
||||||
|
|
||||||
add_log_line();
|
add_log_line();
|
||||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user