Commit Graph

23 Commits

Author SHA1 Message Date
Uwe Steinmann
d2ccd5d5ad better check in mayReview() and mayApprove()
mayReview() will only return true anymore, if the status is S_DRAFT_REV.
mayApprove() will only return true anymore, if the status is S_DRAFT_APP.
2018-01-08 10:49:36 +01:00
Uwe Steinmann
efbc30c0dd Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-08-02 10:57:10 +02:00
Uwe Steinmann
ea8a695551 maySetReviewersApprovers() checks if review/approval has been done already 2017-08-02 10:53:50 +02:00
Uwe Steinmann
4aef48e5f7 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-08-02 07:02:58 +02:00
Uwe Steinmann
e0dcd86f5a add optional version number to mayEditOnline() 2017-08-02 06:46:44 +02:00
Uwe Steinmann
c37910e473 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2017-01-16 15:12:16 +01:00
Uwe Steinmann
5339c53fa0 add methods mayUpdateReview() and mayUpdateApproval() 2017-01-16 12:59:41 +01:00
Uwe Steinmann
f6db8de5bd do not use static class name 'SeedDMS_Core_Document'
rather use classname as saved in instance of dms
2016-11-02 13:40:54 +01:00
Uwe Steinmann
9a319ef539 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2016-03-09 08:06:37 +01:00
Uwe Steinmann
46843ad0e7 add mayEditVersion()
checks if version may be edited online
2016-03-09 07:44:12 +01:00
Uwe Steinmann
cbf40c2b6f mayApprove() returns false if status is S_REJECTED
this must be the case because if a document was rejected during review
the approval process may not happen anymore. The disadvantages is, that
a document which was rejected during approval cannot not be released
anymore.
2015-08-07 14:21:32 +02:00
Uwe Steinmann
051e1d966a use $dms->getClassname() when checking for propper object type 2015-08-07 13:18:40 +02:00
Uwe Steinmann
5844522262 fix wrong variable name 2015-08-07 13:16:30 +02:00
Uwe Steinmann
482143c04f pass $dms to contructor of SeedDMS_AccessOperation 2015-08-07 13:11:50 +02:00
Uwe Steinmann
d02c06a87f mayApprove() checks if document is in review 2015-06-15 08:56:18 +02:00
Uwe Steinmann
b69f91cf12 mayApprove() checks if document is in review 2015-06-15 08:53:39 +02:00
Uwe Steinmann
c67f279572 allow modification of Rev/App in S_DRAFT_APP if
traditional_only_approval is set
2015-03-18 11:34:36 +01:00
Uwe Steinmann
e669b0acd5 mayEditComment() checks if document is locked 2014-06-03 17:50:58 +02:00
Uwe Steinmann
9400a962a8 maySetExpires() doesn't check if version modification is enabled
this makes no sense because a expiration date can only be set for
a document and not for the version
2013-04-30 17:23:24 +02:00
Uwe Steinmann
73c6ff9427 major name change from letodms to seeddms 2013-02-14 12:10:53 +01:00
steinm
c603feada9 fixed comment 2013-01-24 08:33:03 +00:00
steinm
7d59ae97a8 - added methods mayReview() and mayApprove() 2012-10-23 09:17:07 +00:00
steinm
68e096e1f6 - new class with all checks wether an operation is allowed or not 2012-10-09 09:46:24 +00:00