Commit ec46215e2d6cc8a860c97f071532d57e52a4197f
1 parent
4dc4455c
Comment out collaboration-related stuff - will need to look at how this
interacts with workflow at some point. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3984 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
plugins/ktcore/KTDocumentActions.php
| ... | ... | @@ -122,11 +122,13 @@ class KTDocumentArchiveAction extends KTBuiltInDocumentAction { |
| 122 | 122 | var $sName = 'ktcore.actions.document.archive'; |
| 123 | 123 | |
| 124 | 124 | function _disable() { |
| 125 | + /* | |
| 125 | 126 | if ($this->oDocument->hasCollaboration() && |
| 126 | 127 | DocumentCollaboration::documentCollaborationStarted($this->oDocument->getID()) && |
| 127 | 128 | !DocumentCollaboration::documentCollaborationDone($this->oDocument->getID())) { |
| 128 | 129 | $sDisabledText = _("This document is in collaboration and cannot be archived"); |
| 129 | 130 | } |
| 131 | + */ | |
| 130 | 132 | |
| 131 | 133 | if ($this->oDocument->getIsCheckedOut()) { |
| 132 | 134 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); |
| ... | ... | @@ -156,6 +158,7 @@ class KTDocumentPublishAction extends KTDocumentAction { |
| 156 | 158 | $this->_sDisabledText = _("This document is checked out and cannot be archived."); |
| 157 | 159 | return true; |
| 158 | 160 | } |
| 161 | + /* | |
| 159 | 162 | if (DocumentCollaboration::documentIsPublished($oDocument->getID())) { |
| 160 | 163 | $this->_sDisabledText = _("This document is already published."); |
| 161 | 164 | return true; |
| ... | ... | @@ -170,6 +173,7 @@ class KTDocumentPublishAction extends KTDocumentAction { |
| 170 | 173 | return true; |
| 171 | 174 | } |
| 172 | 175 | } |
| 176 | + */ | |
| 173 | 177 | return parent::_disable(); |
| 174 | 178 | } |
| 175 | 179 | ... | ... |