You need to sign in before continuing.
Commit 2601533d6afeb0b46e13b4780a77dc494ade77cc
1 parent
99a77e39
KTS-4115. Added check for immutable status to function canBeMoved in lib/documen…
…tmanagement/documentutil.inc.php. This only affects the document level. I am still looking at preventing moving of folders containing immutable documents. "Immutable documents can still be moved (SUP-1511)" In Progress Committed by: Paul Barrett Reviewed by: Megan Watson
Showing
1 changed file
with
3 additions
and
0 deletions
lib/documentmanagement/documentutil.inc.php
| ... | ... | @@ -1084,6 +1084,9 @@ $sourceDocument->getName(), |
| 1084 | 1084 | if (!KTWorkflowUtil::actionEnabledForDocument($oDocument, 'ktcore.actions.document.move')) { |
| 1085 | 1085 | return false; |
| 1086 | 1086 | } |
| 1087 | + if ($oDocument->getImmutable()) { | |
| 1088 | + return false; | |
| 1089 | + } | |
| 1087 | 1090 | return true; |
| 1088 | 1091 | } |
| 1089 | 1092 | ... | ... |