Compare commits

...

3111 Commits

Author SHA1 Message Date
Uwe Steinmann
a2a39ce946 Merge branch 'seeddms-6.0.x' 2024-11-08 06:45:24 +01:00
Uwe Steinmann
1922899d7e allow to turn of comment for receptions 2024-11-07 08:52:03 +01:00
Uwe Steinmann
58a29b675b add space between consecutive forms and divs,legends 2024-11-07 08:51:08 +01:00
Uwe Steinmann
d1d348deb9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-11-07 07:10:56 +01:00
Uwe Steinmann
b9abff5c55 Merge branch 'seeddms-6.0.x' 2024-11-07 07:08:11 +01:00
Uwe Steinmann
b4d0761824 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-11-05 21:08:26 +01:00
Uwe Steinmann
e43168059e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-11-02 13:01:24 +01:00
Uwe Steinmann
36acb63ebe Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-11-01 17:49:44 +01:00
Uwe Steinmann
c2f69ce491 check access on CheckOutDocument 2024-10-30 19:45:10 +01:00
Uwe Steinmann
588d150c39 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-28 17:02:14 +01:00
Uwe Steinmann
32b6445904 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-28 13:02:04 +01:00
Uwe Steinmann
012977d606 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-27 06:36:12 +01:00
Uwe Steinmann
d80009e484 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-26 11:54:43 +02:00
Uwe Steinmann
4ace32c927 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-11 14:38:45 +02:00
Uwe Steinmann
79560a8164 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-10-07 08:25:46 +02:00
Uwe Steinmann
f89011f2ee Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-25 16:54:07 +02:00
Uwe Steinmann
e71fccbb1e fix constructor of AccessRestrictions 2024-09-20 12:40:51 +02:00
Uwe Steinmann
43b1bb6fd8 fix constructor for AccessRestrictions 2024-09-18 17:53:00 +02:00
Uwe Steinmann
cc41763a96 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-18 14:21:10 +02:00
Uwe Steinmann
1c7b4b0466 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-18 10:29:19 +02:00
Uwe Steinmann
2d4d4c59a3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-07 21:52:26 +02:00
Uwe Steinmann
dfe73c8cb1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-05 18:10:48 +02:00
Uwe Steinmann
dcf448072d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-09-01 09:53:29 +02:00
Uwe Steinmann
74e65c9e0c fix js error 2024-09-01 09:49:19 +02:00
Uwe Steinmann
a14ea507fc fix php error 2024-07-02 17:07:30 +02:00
Uwe Steinmann
9db0985495 isDue() reads nextrun from from database 2024-07-02 16:25:05 +02:00
Uwe Steinmann
6f11dc6dc2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-06-20 16:59:55 +02:00
Uwe Steinmann
e6042e8538 remove old jquery 2024-06-17 19:17:07 +02:00
Uwe Steinmann
eefbd18e5e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-06-17 13:54:22 +02:00
Uwe Steinmann
8039a0f479 task to run can be passed in url 2024-05-29 20:02:28 +02:00
Uwe Steinmann
ae72faab11 remove old html code to output class name 2024-05-29 20:02:00 +02:00
Uwe Steinmann
7c01e94015 fix regression in FolderNotify 2024-05-27 19:23:52 +02:00
Uwe Steinmann
41a438754a set initial document status 2024-05-24 08:25:13 +02:00
Uwe Steinmann
9e3bb361ae Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-16 15:03:14 +02:00
Uwe Steinmann
8870ca5c5d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-14 15:34:41 +02:00
Uwe Steinmann
17351584d5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-14 13:07:39 +02:00
Uwe Steinmann
ac841494a9 show a message if the revision date cannot be set 2024-05-14 07:30:34 +02:00
Uwe Steinmann
ce0de15ce1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-13 18:17:56 +02:00
Uwe Steinmann
1b163e90e1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-07 21:35:53 +02:00
Uwe Steinmann
791c23befa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-07 14:50:53 +02:00
Uwe Steinmann
d552047b0b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-06 18:57:55 +02:00
Uwe Steinmann
e1a970fb02 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-06 12:32:05 +02:00
Uwe Steinmann
e9d953eed6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-03 11:35:55 +02:00
Uwe Steinmann
3a5886b64a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-03 08:38:22 +02:00
Uwe Steinmann
14d79d58e7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-05-02 08:27:47 +02:00
Uwe Steinmann
56e15e5125 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-30 20:45:31 +02:00
Uwe Steinmann
76b9b3c2d6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-30 18:32:29 +02:00
Uwe Steinmann
44621c0bb6 add legacy access check for controllers 2024-04-29 13:05:59 +02:00
Uwe Steinmann
0d0fc4e50a check for documents with a link to themselves 2024-04-28 19:38:10 +02:00
Uwe Steinmann
dc14fc5217 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-28 14:41:41 +02:00
Uwe Steinmann
1edb468877 put file name in '' 2024-04-28 14:40:39 +02:00
Uwe Steinmann
2107955b7e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-28 13:48:44 +02:00
Uwe Steinmann
a0e906a067 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-28 10:03:14 +02:00
Uwe Steinmann
da69c19a1a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-28 09:58:12 +02:00
Uwe Steinmann
9e16e54aaa fix includes 2024-04-27 20:13:58 +02:00
Uwe Steinmann
b51749e631 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-27 20:10:06 +02:00
Uwe Steinmann
f230cd6918 remove duplicate code 2024-04-27 20:07:21 +02:00
Uwe Steinmann
4f44241850 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-27 18:40:54 +02:00
Uwe Steinmann
72a4a05bb2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-25 18:34:05 +02:00
Uwe Steinmann
409b86461b add transmittals in menu 2024-04-25 18:33:05 +02:00
Uwe Steinmann
0d2cc403da add endpoint delete '/roles/{id}' 2024-04-25 15:13:17 +02:00
Uwe Steinmann
f5073ffd4f add changes for 6.0.27 2024-04-23 18:27:51 +02:00
Uwe Steinmann
4ed40bff78 fix appearance of delete button 2024-04-23 18:26:56 +02:00
Uwe Steinmann
478c385d13 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-23 18:22:30 +02:00
Uwe Steinmann
7a06b50e92 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-23 18:21:36 +02:00
Uwe Steinmann
0da2308ee3 add new endpoints for managing roles 2024-04-23 18:15:14 +02:00
Uwe Steinmann
4275072338 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-23 13:57:07 +02:00
Uwe Steinmann
d3ab3e7069 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-23 12:39:49 +02:00
Uwe Steinmann
cf786e749a fix setting role of user when creating a new user 2024-04-23 12:38:03 +02:00
Uwe Steinmann
06f0e1423b add changes for 6.0.27 2024-04-23 12:20:04 +02:00
Uwe Steinmann
55aa6fe170 the checkout info is not related to substituted user 2024-04-23 12:18:34 +02:00
Uwe Steinmann
15ee5357a5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-22 17:49:50 +02:00
Uwe Steinmann
7f16340a26 fix adding workflow log 2024-04-22 17:47:11 +02:00
Uwe Steinmann
50b25a59ec Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-22 14:49:18 +02:00
Uwe Steinmann
593b6359d2 enlarge space between menu items (new sass compiler causes other changes) 2024-04-22 14:47:50 +02:00
Uwe Steinmann
416df6c846 fix insert statement 2024-04-21 13:38:33 +02:00
Uwe Steinmann
0da7e0f655 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-16 06:36:39 +02:00
Uwe Steinmann
c9286b75a0 show tasklist in menu even if there are no task 2024-04-15 11:54:23 +02:00
Uwe Steinmann
bd80e96c92 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-13 09:25:27 +02:00
Uwe Steinmann
9c81a10109 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-11 12:45:55 +02:00
Uwe Steinmann
74e5be95c2 log calling script 2024-04-11 12:37:02 +02:00
Uwe Steinmann
2f8e3fbb51 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-11 12:21:51 +02:00
Uwe Steinmann
f73bdb8388 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-08 18:01:43 +02:00
Uwe Steinmann
35873391c8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-04 15:01:24 +02:00
Uwe Steinmann
3914b76919 expand tabs 2024-04-04 15:00:02 +02:00
Uwe Steinmann
e1c7e27a69 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-04 14:15:29 +02:00
Uwe Steinmann
4e9901161f add more notifications in seeddms 6 2024-04-04 14:14:17 +02:00
Uwe Steinmann
aae9422e30 move sending mails into inc.ClassNotificationService.php 2024-04-04 13:58:36 +02:00
Uwe Steinmann
ad84609a49 add functions to send mail on revision/receipt add/delete 2024-04-04 13:57:36 +02:00
Uwe Steinmann
0b4afff149 set new and old status 2024-04-04 13:56:14 +02:00
Uwe Steinmann
01837f6c5c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-03 13:43:13 +02:00
Uwe Steinmann
1999206af0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-03 09:26:07 +02:00
Uwe Steinmann
d36636be55 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-03 09:21:59 +02:00
Uwe Steinmann
e0b421dcca convert checkin into controller 2024-04-02 20:33:34 +02:00
Uwe Steinmann
038e929778 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-04-02 09:07:16 +02:00
Uwe Steinmann
246ba45c52 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-30 13:15:12 +01:00
Uwe Steinmann
08cac16ecf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-30 12:29:37 +01:00
Uwe Steinmann
66114a653c fix link to document in html mail of expired documents 2024-03-28 20:11:09 +01:00
Uwe Steinmann
eded3365b1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-28 19:27:42 +01:00
Uwe Steinmann
7998c9d7e0 change sequence of parameters for expired docs task 2024-03-28 19:26:50 +01:00
Uwe Steinmann
8b2db5376c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-28 18:30:22 +01:00
Uwe Steinmann
3e8a494f1a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-28 18:22:41 +01:00
Uwe Steinmann
9fad6c6e61 add dryrun paramter 2024-03-28 14:08:27 +01:00
Uwe Steinmann
c1b736022d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-28 11:04:37 +01:00
Uwe Steinmann
8e834e8898 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-27 19:50:18 +01:00
Uwe Steinmann
69b61b1a75 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-26 13:30:02 +01:00
Uwe Steinmann
f65af1741c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-25 16:22:39 +01:00
Uwe Steinmann
fc4d2edb57 pass latest content to hooks. Fix php warnings 2024-03-25 15:17:27 +01:00
Uwe Steinmann
37478ecd89 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-25 14:22:01 +01:00
Uwe Steinmann
6a7d596806 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-23 11:57:58 +01:00
Uwe Steinmann
ceaa62f16c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-23 11:56:11 +01:00
Uwe Steinmann
ac2ade6b6e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-03-06 17:38:04 +01:00
Uwe Steinmann
36dbc1f825 no need to check if group has users because it has been remove from the mandatory groups already 2024-02-22 12:07:35 +01:00
Uwe Steinmann
43f078a153 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-22 12:07:06 +01:00
Uwe Steinmann
a1a20a4c25 pass document to getMandatoryReviewers() and getMandatoryApprovers() 2024-02-22 11:58:05 +01:00
Uwe Steinmann
12a4a6446f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-21 16:04:29 +01:00
Uwe Steinmann
a0b3d9da27 take all mandatory reviewers/approvers into account 2024-02-21 15:33:13 +01:00
Uwe Steinmann
f4003f72e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-17 13:04:16 +01:00
Uwe Steinmann
18e4874a77 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-16 08:51:23 +01:00
Uwe Steinmann
c6243813bf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-15 09:40:59 +01:00
Uwe Steinmann
3345155e5e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-12 14:12:29 +01:00
Uwe Steinmann
0224793366 add showConfigGroup() 2024-02-12 14:10:12 +01:00
Uwe Steinmann
4eba2e3283 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-12 14:08:17 +01:00
Uwe Steinmann
3347b8e4f5 fix encapsulation with start/end container 2024-02-09 10:49:15 +01:00
Uwe Steinmann
9300d92311 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-08 21:20:28 +01:00
Uwe Steinmann
192e750f00 output warning if list of recipients contains disabled users 2024-02-07 09:41:40 +01:00
Uwe Steinmann
fb37e526cc separated revisions without access from disabled users 2024-02-06 10:29:23 +01:00
Uwe Steinmann
00d71f4c2e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-06 09:25:22 +01:00
Uwe Steinmann
5d2d80b0af fix output of documents with disabled recipients 2024-02-06 09:23:47 +01:00
Uwe Steinmann
0fa5ffae48 changes for 6.0.27 2024-02-05 16:15:53 +01:00
Uwe Steinmann
192daaec69 distinguish between no access and disabled users in check for receptions 2024-02-05 16:15:18 +01:00
Uwe Steinmann
89ce934164 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-02-02 16:09:53 +01:00
Uwe Steinmann
61dd316e09 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-31 07:51:59 +01:00
Uwe Steinmann
81ee0beeae Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-30 20:39:56 +01:00
Uwe Steinmann
c66637ce6c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-30 17:11:48 +01:00
Uwe Steinmann
eb95f7999a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-30 16:32:45 +01:00
Uwe Steinmann
2009e59629 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-26 12:54:59 +01:00
Uwe Steinmann
22aaa5608f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-16 17:59:16 +01:00
Uwe Steinmann
6b562477aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-15 09:31:28 +01:00
Uwe Steinmann
a03b96330a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-12 14:31:06 +01:00
Uwe Steinmann
6c84787027 fix inclusion of php files, turn on authentication 2024-01-12 14:29:45 +01:00
Uwe Steinmann
ba8aebb24b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-12 14:11:49 +01:00
Uwe Steinmann
023e2c3edf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-11 10:10:12 +01:00
Uwe Steinmann
3af7ce8177 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2024-01-02 17:58:39 +01:00
Uwe Steinmann
d872b68efe more efficient way to get documents in process 2024-01-02 17:56:43 +01:00
Uwe Steinmann
699e1bcfad Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-19 12:53:16 +01:00
Uwe Steinmann
c23c5845ad add changes for 6.0.26 2023-12-19 10:00:51 +01:00
Uwe Steinmann
00c1efffac add substitution of users 2023-12-19 09:58:55 +01:00
Uwe Steinmann
ddfe87a82c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-19 09:32:14 +01:00
Uwe Steinmann
79aa8098e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-18 21:48:03 +01:00
Uwe Steinmann
98f5cee2eb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-18 14:36:12 +01:00
Uwe Steinmann
07bfdca11e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-15 17:14:02 +01:00
Uwe Steinmann
ac656d4da0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-12-15 11:00:16 +01:00
Uwe Steinmann
1115d08d2f use instead of 2023-11-12 19:19:02 +01:00
Uwe Steinmann
cd0a5c9844 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-11-12 19:16:11 +01:00
Uwe Steinmann
8432340154 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-11-12 17:38:31 +01:00
Uwe Steinmann
1a5dbfef51 get settings from view 2023-11-06 14:31:56 +01:00
Uwe Steinmann
0f258d81ac add warning about document being release only if initial doc status is 'released' 2023-11-06 14:31:18 +01:00
Uwe Steinmann
bcf2239334 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-11-02 13:11:56 +01:00
Uwe Steinmann
f69c9ad9d0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-31 21:14:32 +01:00
Uwe Steinmann
46f5b630d6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-31 21:09:36 +01:00
Uwe Steinmann
d7e780493f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-31 16:17:47 +01:00
Uwe Steinmann
8a148daa42 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-27 12:09:34 +02:00
Uwe Steinmann
46371b2cf2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-27 08:30:38 +02:00
Uwe Steinmann
31fa1d505c fix call of contructor of SeedDMS_AccessOperation 2023-10-20 07:14:34 +02:00
Uwe Steinmann
b118b00536 pass $document ot mayRemoveVersion() 2023-10-18 19:04:02 +02:00
Uwe Steinmann
ab16c6b539 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-17 16:36:06 +02:00
Uwe Steinmann
b34b37189a remove SeedDMЅ_Core 2023-10-16 12:59:20 +02:00
Uwe Steinmann
c10d2f403a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-16 12:57:38 +02:00
Uwe Steinmann
8b4c01e339 addGrpRecepient() and addIndRecepient() return the log id not 0 2023-10-15 19:24:17 +02:00
Uwe Steinmann
ee568bb916 allow to edit hidden users for receiving a document 2023-10-15 17:38:22 +02:00
Uwe Steinmann
000f1e2c44 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-15 17:31:43 +02:00
Uwe Steinmann
e06aa0a286 do not list hidden users as recipient or revisor 2023-10-15 10:30:06 +02:00
Uwe Steinmann
568718f023 add parameters keepfile and dryrun to import drop folder task 2023-10-14 13:47:27 +02:00
Uwe Steinmann
1085401ccf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-14 12:55:20 +02:00
Uwe Steinmann
ac69311242 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-13 21:40:26 +02:00
Uwe Steinmann
f1183cd4d2 changes in 6.0.26 2023-10-13 16:39:51 +02:00
Uwe Steinmann
878f7e559a add task to import files from dropfolder 2023-10-13 16:39:14 +02:00
Uwe Steinmann
5ebbaa9336 set initial doc status from settings when uploading a document 2023-10-13 16:38:44 +02:00
Uwe Steinmann
04b63531c7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-13 13:36:10 +02:00
Uwe Steinmann
f02ba8ddc5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-13 11:42:12 +02:00
Uwe Steinmann
0139beb33f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-11 19:54:38 +02:00
Uwe Steinmann
11301f1955 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-10-10 10:35:07 +02:00
Uwe Steinmann
d120b9eb7d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-27 13:03:54 +02:00
Uwe Steinmann
c721c05d6d do not show link to EditUserData if user may not edit himself 2023-09-27 12:48:13 +02:00
Uwe Steinmann
bd396e1c69 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-27 11:41:45 +02:00
Uwe Steinmann
b5dbadfb66 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-27 11:40:04 +02:00
Uwe Steinmann
0e86608cbc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-18 13:37:40 +02:00
Uwe Steinmann
4f00481f1e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-18 09:38:35 +02:00
Uwe Steinmann
2b0d45c68c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-14 12:11:24 +02:00
Uwe Steinmann
6ea76aa00e set width of table col to * instead of 100% 2023-09-12 21:09:24 +02:00
Uwe Steinmann
0638776bc5 show placeholder if set in task config 2023-09-12 21:09:17 +02:00
Uwe Steinmann
153796b82c add changes for 6.0.25 2023-09-12 12:49:56 +02:00
Uwe Steinmann
6b6410997f more condensed layout for better use on small devices 2023-09-12 12:44:21 +02:00
Uwe Steinmann
52fdbb8c16 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-12 10:15:30 +02:00
Uwe Steinmann
deb2aeea57 some minor code improvements, add help for folder selection 2023-09-12 09:40:23 +02:00
Uwe Steinmann
0bd625ca20 add help when selecting folder 2023-09-12 09:39:45 +02:00
Uwe Steinmann
0092f359bd declare $_params as class var 2023-09-12 09:38:15 +02:00
Uwe Steinmann
681ce9090f add class var $conversionmgr 2023-09-11 09:26:40 +02:00
Uwe Steinmann
fc8bef612e use logger in task to check checksum 2023-09-11 09:26:05 +02:00
Uwe Steinmann
5bb70b82aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-07 15:51:36 +02:00
Uwe Steinmann
2bb27b5b8e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-09-06 18:56:09 +02:00
Uwe Steinmann
23c73ed578 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-31 15:38:49 +02:00
Uwe Steinmann
e5390d0dbe Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-30 19:39:28 +02:00
Uwe Steinmann
7d575b2d11 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-30 15:54:00 +02:00
Uwe Steinmann
4a1a3c6bfe fix typo in class var _dms 2023-08-28 12:09:33 +02:00
Uwe Steinmann
9f23cc37d7 -trim_trailing_whitespaces must be -trim_trailing_whitespace 2023-08-25 21:05:27 +02:00
Uwe Steinmann
c3094ce87f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-25 20:18:48 +02:00
Uwe Steinmann
ef42fcac07 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-25 12:43:56 +02:00
Uwe Steinmann
0c99740d25 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-25 12:37:36 +02:00
Uwe Steinmann
1d74863f81 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-24 13:22:49 +02:00
Uwe Steinmann
c117b9a590 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-24 13:14:21 +02:00
Uwe Steinmann
52b43ba8c6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-22 11:24:34 +02:00
Uwe Steinmann
0f46a7cd6a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-18 08:01:50 +02:00
Uwe Steinmann
5f00ebd852 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-18 08:00:12 +02:00
Uwe Steinmann
918af9b2e3 add head line in plain/text mail 2023-08-16 17:39:37 +02:00
Uwe Steinmann
bd9c9e8e3b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-08-15 08:07:26 +02:00
Uwe Steinmann
54bdbfdc56 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-07-20 11:21:09 +02:00
Uwe Steinmann
d92acf86a9 status log can be turned on with advanced access control 2023-07-19 06:43:47 +02:00
Uwe Steinmann
7c0634f272 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-07-17 14:56:07 +02:00
Uwe Steinmann
0e66c6457a pass document to mayReview and mayApprove 2023-06-19 20:57:52 +02:00
Uwe Steinmann
77474bdaee document must be readable to be reviewed or approved 2023-06-19 17:31:08 +02:00
Uwe Steinmann
64a7d341eb remove second sending of emails 2023-06-19 17:06:26 +02:00
Uwe Steinmann
0fd0293f35 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-06-19 16:51:15 +02:00
Uwe Steinmann
5bd93d4efe use httpRoot to create absolute links instead of relative links 2023-05-11 17:33:09 +02:00
Uwe Steinmann
403d391d72 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-11 17:30:29 +02:00
Uwe Steinmann
076e5bc5c2 fix layout of input field for 2nd factore, not need to include 2-factor lib 2023-05-11 17:26:55 +02:00
Uwe Steinmann
2ccbe2b9c7 use httpRoot for absolute links instead of relative links 2023-05-11 17:26:15 +02:00
Uwe Steinmann
eebe9d48d3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-09 08:48:00 +02:00
Uwe Steinmann
c865927fe4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-09 08:46:18 +02:00
Uwe Steinmann
d4add8b343 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-08 18:00:20 +02:00
Uwe Steinmann
23568c0a6a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-06 07:19:29 +02:00
Uwe Steinmann
40f86da41d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-05 06:43:48 +02:00
Uwe Steinmann
24595a234d Merge branch 'master' of ssh://git.code.sf.net/p/seeddms/code 2023-05-04 14:29:51 +02:00
Uwe Steinmann
199fd57151 Merge branch 'seeddms-6.0.x' 2023-05-04 14:24:04 +02:00
Uwe Steinmann
1103324e89 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-04 14:17:27 +02:00
Uwe Steinmann
bb2ccf05a0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-03 18:30:03 +02:00
Uwe Steinmann
b6dce79936 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-05-02 17:10:33 +02:00
Uwe Steinmann
424d279c7f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-30 07:24:34 +02:00
Uwe Steinmann
6178252e56 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-28 18:43:27 +02:00
Uwe Steinmann
1e699147ff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-28 17:13:50 +02:00
Uwe Steinmann
fa19503ab2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-28 12:15:37 +02:00
Uwe Steinmann
497d1e1ca3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-25 17:11:27 +02:00
Uwe Steinmann
775a785525 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-25 14:18:59 +02:00
Uwe Steinmann
f97124d694 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-25 13:05:15 +02:00
Uwe Steinmann
d7eeacdc74 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-24 17:07:17 +02:00
Uwe Steinmann
f42d4d38b1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-24 07:31:56 +02:00
Uwe Steinmann
fab8276b0d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-23 19:15:48 +02:00
Uwe Steinmann
337c0ed41f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-23 19:11:08 +02:00
Uwe Steinmann
efa587493e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-22 19:42:21 +02:00
Uwe Steinmann
fde112e2d9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-21 18:01:53 +02:00
Uwe Steinmann
a1520299a2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-21 16:53:20 +02:00
Uwe Steinmann
de53c5159c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-20 13:30:03 +02:00
Uwe Steinmann
ff64e76213 add access checks for all tabs 2023-04-20 13:28:03 +02:00
Uwe Steinmann
c4c36735b6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-19 15:05:41 +02:00
Uwe Steinmann
80ecac5710 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-19 14:00:41 +02:00
Uwe Steinmann
eb2296f814 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-18 20:13:45 +02:00
Uwe Steinmann
300bcb2514 remove change which was done in 5.1.31 2023-04-18 10:00:00 +02:00
Uwe Steinmann
e6312db48f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-18 09:59:42 +02:00
Uwe Steinmann
ca706753bc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-18 09:41:54 +02:00
Uwe Steinmann
048c56f3a3 add changes of 6.0.24 2023-04-18 09:41:38 +02:00
Uwe Steinmann
55c7a32a05 fix some old php spreadsheet consts 2023-04-18 09:40:50 +02:00
Uwe Steinmann
e14bfd9326 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-15 13:24:38 +02:00
Uwe Steinmann
337f9f2ce4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-14 12:48:24 +02:00
Uwe Steinmann
6e489dc80a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-13 15:05:11 +02:00
Uwe Steinmann
32c93f5494 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-13 09:16:37 +02:00
Uwe Steinmann
3fce0d58b6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-12 16:35:04 +02:00
Uwe Steinmann
e51e7cd758 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-11 19:27:07 +02:00
Uwe Steinmann
835b330331 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-11 12:38:03 +02:00
Uwe Steinmann
a25de1eea5 fix some old entries 2023-04-11 12:35:30 +02:00
Uwe Steinmann
752653a2b3 add link to document in recent changes and expired documents 2023-04-06 18:54:08 +02:00
Uwe Steinmann
e3cc28916d change description of parameter 'lists' 2023-04-06 14:36:22 +02:00
Uwe Steinmann
6211ab6b32 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-06 14:35:13 +02:00
Uwe Steinmann
00f7a0ee35 some code cleanups 2023-04-06 14:30:46 +02:00
Uwe Steinmann
f63f7847f0 lists of recent changes can be configured 2023-04-06 14:30:20 +02:00
Uwe Steinmann
3bef98756a fix call of SeedDMS_AccessOperation() 2023-04-06 12:21:24 +02:00
Uwe Steinmann
626e521bc7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-06 12:20:02 +02:00
Uwe Steinmann
e88321c577 add changes for 6.0.24 2023-04-06 12:14:13 +02:00
Uwe Steinmann
c44aaae446 show parameters of task if they are an array 2023-04-06 12:13:47 +02:00
Uwe Steinmann
b71467b8c8 add task to send list of recent changes by email 2023-04-06 12:13:36 +02:00
Uwe Steinmann
d612220ad5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-06 08:02:49 +02:00
Uwe Steinmann
2b2d9ef7de Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-05 14:55:40 +02:00
Uwe Steinmann
f4097c6831 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-05 13:47:14 +02:00
Uwe Steinmann
1f92a47c30 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-04 12:33:03 +02:00
Uwe Steinmann
10a3aaf212 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-03 16:29:07 +02:00
Uwe Steinmann
c83bcf9877 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-03 15:51:05 +02:00
Uwe Steinmann
c04eb28ac1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-04-03 12:13:58 +02:00
Uwe Steinmann
173ecb00b3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-31 12:01:56 +02:00
Uwe Steinmann
3fb9d140fa fix translations for recipients 2023-03-30 12:33:46 +02:00
Uwe Steinmann
cb808e0e66 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-30 12:28:54 +02:00
Uwe Steinmann
8609fdee74 do not show warning that document is released if initial status is draft 2023-03-30 12:02:31 +02:00
Uwe Steinmann
dc642fa898 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-29 20:59:06 +02:00
Uwe Steinmann
7fb0acb562 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-29 20:50:19 +02:00
Uwe Steinmann
7c292986f5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-29 09:04:29 +02:00
Uwe Steinmann
b25776eaad complete changes of 6.0.23 2023-03-27 14:30:56 +02:00
Uwe Steinmann
d8e38c2825 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-24 16:33:45 +01:00
Uwe Steinmann
668ee243b2 actually send mail 2023-03-24 15:37:29 +01:00
Uwe Steinmann
9616a540c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-24 11:19:34 +01:00
Uwe Steinmann
f4ee945ab1 add new task for sending statistics 2023-03-24 11:17:32 +01:00
Uwe Steinmann
057abec09c fix sending calendar events 2023-03-24 11:17:16 +01:00
Uwe Steinmann
8218b752f5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-21 11:25:28 +01:00
Uwe Steinmann
b7b9acbe7e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-19 09:17:54 +01:00
Uwe Steinmann
db5b242cbc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-15 11:13:46 +01:00
Uwe Steinmann
c383ca0625 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-15 11:09:18 +01:00
Uwe Steinmann
f1211f6c80 init options to empty array for list of users 2023-03-14 12:09:45 +01:00
Uwe Steinmann
33fe05fc6e fix unique id of folder chooser 2023-03-14 12:09:33 +01:00
Uwe Steinmann
1c5977fca5 add missing config types when showing the empty form 2023-03-14 12:09:01 +01:00
Uwe Steinmann
5ae461a157 add changes for 6.0.23 2023-03-13 13:01:54 +01:00
Uwe Steinmann
836a2b50a1 confirm checkbox is required 2023-03-13 13:00:39 +01:00
Uwe Steinmann
2b900b5e06 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-13 10:26:51 +01:00
Uwe Steinmann
ab72673379 do not show menu item if document may not be checked in 2023-03-13 10:24:53 +01:00
Uwe Steinmann
a7579f47ae show message if document may not be checked in 2023-03-13 10:23:36 +01:00
Uwe Steinmann
67d6191024 echo splash msg 2023-03-13 10:22:54 +01:00
Uwe Steinmann
00fe788571 check if document may be checked in 2023-03-13 10:22:30 +01:00
Uwe Steinmann
7ae5749bcf add new method mayCheckIn() 2023-03-13 10:18:14 +01:00
Uwe Steinmann
fe0fd30971 add fold marks 2023-03-12 09:18:30 +01:00
Uwe Steinmann
658351a4d3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-11 21:14:55 +01:00
Uwe Steinmann
20686bccbd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-11 18:59:32 +01:00
Uwe Steinmann
63adb75fbc fix regression when setting review by individual 2023-03-11 18:57:17 +01:00
Uwe Steinmann
3f6719e7aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-10 17:59:54 +01:00
Uwe Steinmann
5d2ace6a14 take over attribute validation from op.UpdateDocument.php 2023-03-09 08:10:12 +01:00
Uwe Steinmann
359cdedfdb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-04 09:05:08 +01:00
Uwe Steinmann
102a5603c0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-03 16:14:31 +01:00
Uwe Steinmann
97778d3e2b use two column layout (left for check in, right for cancel checkout) 2023-03-02 09:55:08 +01:00
Uwe Steinmann
8bfe9e92db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-03-01 12:18:11 +01:00
Uwe Steinmann
61b7620ab0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-28 14:21:46 +01:00
Uwe Steinmann
737e69876d fix nasty php error 2023-02-28 10:44:25 +01:00
Uwe Steinmann
df6a2e79bc adjust call of getDocumentChooserHtml() for 6.0.x 2023-02-24 14:20:33 +01:00
Uwe Steinmann
bc4362c196 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-24 13:27:09 +01:00
Uwe Steinmann
e88aa870db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-23 08:24:49 +01:00
Uwe Steinmann
4c3218bc0f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-23 07:18:42 +01:00
Uwe Steinmann
cb1cb46cfe Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-22 10:11:37 +01:00
Uwe Steinmann
1463f00faf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-22 09:18:04 +01:00
Uwe Steinmann
0ffc8c78f7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-21 14:21:13 +01:00
Uwe Steinmann
513343c89a add changes for 6.0.23 2023-02-16 17:29:29 +01:00
Uwe Steinmann
0b7d3cad2d add changes for 6.0.23 2023-02-16 17:28:37 +01:00
Uwe Steinmann
9c8c9616d5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-16 11:36:18 +01:00
Uwe Steinmann
7c973d9f37 fix inclusion of php files 2023-02-16 11:35:19 +01:00
Uwe Steinmann
8cb7e22bf9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-15 08:27:51 +01:00
Uwe Steinmann
d86b2cc883 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-12 14:36:17 +01:00
Uwe Steinmann
45e1d47e8f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x, start version 6.0.23 2023-02-09 06:51:31 +01:00
Uwe Steinmann
9dfc6e8b1e Merge branch 'seeddms-6.0.x' 2023-02-07 13:16:15 +01:00
Uwe Steinmann
1934cdd7c5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-07 13:08:23 +01:00
Uwe Steinmann
22463fdb40 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-02-05 17:06:31 +01:00
Uwe Steinmann
ef9e685f55 set libfolder to null if not accessible, but do no issue a error 2023-02-04 15:14:38 +01:00
Uwe Steinmann
458252f531 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-26 21:06:16 +01:00
Uwe Steinmann
11030fad52 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-26 20:59:38 +01:00
Uwe Steinmann
bdcaf2b5f3 minor correction of log messages 2023-01-26 18:42:28 +01:00
Uwe Steinmann
23f17e291e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-26 13:31:08 +01:00
Uwe Steinmann
42a81b6b0e eval parameter 'multiple' 2023-01-26 13:17:34 +01:00
Uwe Steinmann
1ab07d53f7 better and more verbose logging 2023-01-26 13:16:47 +01:00
Uwe Steinmann
845317e27d better documentation 2023-01-26 13:16:18 +01:00
Uwe Steinmann
0788c29c4a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-25 17:32:33 +01:00
Uwe Steinmann
57bbc06577 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-25 10:12:23 +01:00
Uwe Steinmann
335c7bbf98 do not include SeedDMS/Preview.php anymore because it is included in inc.FulltextInit.php already 2023-01-22 19:16:38 +01:00
Uwe Steinmann
c56a92b395 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-22 19:15:32 +01:00
Uwe Steinmann
77ce7554a8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-21 13:58:14 +01:00
Uwe Steinmann
22802c4abd remove phpexcel, raise some max version numbers 2023-01-21 13:47:28 +01:00
Uwe Steinmann
e34830a53e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-21 13:33:54 +01:00
Uwe Steinmann
97feb24466 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-21 09:10:29 +01:00
Uwe Steinmann
0c30b97f2d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 17:33:01 +01:00
Uwe Steinmann
cb1d55e413 add all changes from 6.0.x 2023-01-20 12:32:13 +01:00
Uwe Steinmann
3d880be30c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 12:30:27 +01:00
Uwe Steinmann
c3e415ff7a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 12:22:22 +01:00
Uwe Steinmann
6dc9cc8b8e minor corrections to sync with seeddms 5 2023-01-20 11:11:10 +01:00
Uwe Steinmann
3bf13c9e03 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 11:06:19 +01:00
Uwe Steinmann
4f6261321f replace tabs by spaces 2023-01-20 11:00:07 +01:00
Uwe Steinmann
21a787aa21 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 10:58:57 +01:00
Uwe Steinmann
ef61f16f95 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-20 10:52:04 +01:00
Uwe Steinmann
f6ae2c3868 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-19 15:02:19 +01:00
Uwe Steinmann
f0a3d7d60c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-19 09:37:30 +01:00
Uwe Steinmann
fb43a82818 check for more mimetypes in getWrongFiletypeDocumentContent() 2023-01-19 08:59:49 +01:00
Uwe Steinmann
1506cef2ab Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-19 07:10:36 +01:00
Uwe Steinmann
83d11651b3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-17 13:04:24 +01:00
Uwe Steinmann
ace30334a8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-13 21:30:35 +01:00
Uwe Steinmann
795b0e08d3 add rule to provide auth info if php is run in fpm mode 2023-01-12 06:46:00 +01:00
Uwe Steinmann
d628b01ede Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-11 13:28:55 +01:00
Uwe Steinmann
fa683ba65f set separator between categories to '#' 2023-01-10 20:39:42 +01:00
Uwe Steinmann
48eebee92a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-10 18:33:40 +01:00
Uwe Steinmann
b351a05aba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-10 16:57:41 +01:00
Uwe Steinmann
328cbd9eb9 fix indexing documents 2023-01-10 15:44:30 +01:00
Uwe Steinmann
6d6bbca94b set placeholder of task frequency 2023-01-10 15:44:09 +01:00
Uwe Steinmann
aa733c7531 pass logger to controller, fix including php files 2023-01-10 15:43:37 +01:00
Uwe Steinmann
41b2ae91e1 use authenticator 2023-01-10 15:43:06 +01:00
Uwe Steinmann
244a5da6d8 get logger 2023-01-10 15:42:50 +01:00
Uwe Steinmann
9461f2c24d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-10 08:26:39 +01:00
Uwe Steinmann
1374c7fda3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-09 16:58:39 +01:00
Uwe Steinmann
927e5acdc2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-09 15:40:41 +01:00
Uwe Steinmann
8f07c2fd1f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-06 18:55:13 +01:00
Uwe Steinmann
99bb9e5e20 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-05 16:47:28 +01:00
Uwe Steinmann
12ffb0174e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-05 08:39:45 +01:00
Uwe Steinmann
b5c773a4a3 fix php error 2023-01-03 17:53:36 +01:00
Uwe Steinmann
c4f1019afb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-03 17:01:07 +01:00
Uwe Steinmann
2f868c4f44 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2023-01-03 16:38:57 +01:00
Uwe Steinmann
e141892934 fulltext index uses 'indexed' instead of 'created' 2022-12-15 12:46:54 +01:00
Uwe Steinmann
9e9c0c8ac5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-12-15 12:45:04 +01:00
Uwe Steinmann
de7d1c005e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-12-13 17:48:54 +01:00
Uwe Steinmann
c786635f9c fix inclusion of php files 2022-12-11 16:56:05 +01:00
Uwe Steinmann
082a6a8af0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-12-11 15:35:02 +01:00
Uwe Steinmann
5694bf9501 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-12-10 14:23:43 +01:00
Uwe Steinmann
aeb0e4f1de use formSubmit() instead of plain html for submit button 2022-12-10 14:18:07 +01:00
Uwe Steinmann
8a01102cf5 add documentation on how to use the scheduler 2022-11-29 10:49:37 +01:00
Uwe Steinmann
182418c856 allow parameter of type 'folder' and 'users' 2022-11-25 15:06:49 +01:00
Uwe Steinmann
1488cdcfca use predefined key for translation of parameter description 2022-11-25 13:45:27 +01:00
Uwe Steinmann
e4be5465be issue propper err msg when view access is prohibited 2022-11-24 17:16:43 +01:00
Uwe Steinmann
0c28f47481 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-24 12:40:55 +01:00
Uwe Steinmann
53f350c2fa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-24 11:03:56 +01:00
Uwe Steinmann
9e4eae8206 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-22 06:56:46 +01:00
Uwe Steinmann
cfc23e0ddf Merge branch 'seeddms-5.1.x' 2022-11-21 15:10:31 +01:00
Uwe Steinmann
baa3010b43 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-18 17:17:38 +01:00
Uwe Steinmann
9dbe4e25aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-17 17:44:05 +01:00
Uwe Steinmann
330073f52a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-17 15:24:32 +01:00
Uwe Steinmann
4888082cda Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-15 17:16:46 +01:00
Uwe Steinmann
1667187613 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-15 16:08:32 +01:00
Uwe Steinmann
9850b2d8f9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-14 17:40:41 +01:00
Uwe Steinmann
9c740db936 add changes of 6.0.21 2022-11-14 17:23:26 +01:00
Uwe Steinmann
938126c19c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-14 17:22:17 +01:00
Uwe Steinmann
3b473edd25 add button to reorder docs in a folder if sequence numbers are not unique 2022-11-14 16:25:22 +01:00
Uwe Steinmann
b6a0b45867 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-14 09:05:35 +01:00
Uwe Steinmann
863c3f971c add list of folders containing duplicate sequences 2022-11-14 08:39:09 +01:00
Uwe Steinmann
fbbc79815d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-14 08:21:01 +01:00
Uwe Steinmann
e2e52d61b1 fix output, add translations 2022-11-14 08:16:51 +01:00
Uwe Steinmann
b786e42bb3 fix inclusion of php files 2022-11-11 14:47:42 +01:00
Uwe Steinmann
a97fcbc67a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-11 13:01:44 +01:00
Uwe Steinmann
3b74689c9c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-10 08:29:17 +01:00
Uwe Steinmann
971dc536f7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-09 19:15:55 +01:00
Uwe Steinmann
b8449289ac do not even try to remove a checked out file if it doesn't exist anymore 2022-11-09 13:33:18 +01:00
Uwe Steinmann
3e733b91cd check checkout status 2022-11-09 13:31:47 +01:00
Uwe Steinmann
e422fcf67a checkout can be canceled if file disappeared, is obsolete 2022-11-09 13:31:10 +01:00
Uwe Steinmann
2ce2fd07fe add version 5.1.28 and updated notes of 6.0.21 2022-11-09 12:22:23 +01:00
Uwe Steinmann
f0cd33d110 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-09 12:20:32 +01:00
Uwe Steinmann
dc6b153df8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-11-02 09:00:43 +01:00
Uwe Steinmann
04211bd09c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-10-24 17:12:27 +02:00
Uwe Steinmann
6bb4eeb926 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-10-20 14:44:25 +02:00
Uwe Steinmann
d48af54737 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-10-13 16:36:16 +02:00
Uwe Steinmann
97c6b19c1f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-10-11 12:33:09 +02:00
Uwe Steinmann
5278732456 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-10-10 14:04:19 +02:00
Uwe Steinmann
df659c52d9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-25 13:49:35 +02:00
Uwe Steinmann
7012580476 Merge branch 'seeddms-5.1.x' 2022-09-22 16:52:06 +02:00
Uwe Steinmann
54c6d63a2d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-21 14:32:50 +02:00
Uwe Steinmann
4b9844262c init variable 2022-09-21 12:49:22 +02:00
Uwe Steinmann
6dbcf2a172 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-21 12:48:04 +02:00
Uwe Steinmann
c3058176f3 do not use plain html, but use methods from theme class 2022-09-21 10:09:40 +02:00
Uwe Steinmann
dbd43d5877 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-21 08:32:21 +02:00
Uwe Steinmann
18a5306d3c check for revision date even if document is expired 2022-09-20 07:09:13 +02:00
Uwe Steinmann
3add16e06a use conversion manager for all lists 2022-09-18 13:42:22 +02:00
Uwe Steinmann
d9e6472fff propperly check for action listDocsWithMissingRevisionDate 2022-09-18 13:41:20 +02:00
Uwe Steinmann
ff1c29561f update notes and release date 2022-09-18 12:54:53 +02:00
Uwe Steinmann
43e114101a issue msg if there are revisors in state 'sleeping' but no revision date 2022-09-18 12:53:05 +02:00
Uwe Steinmann
3e2e8e2591 getDocumentsInReception() returns status, though it should be 0 2022-09-18 12:52:04 +02:00
Uwe Steinmann
c2a8b4bbc6 getDocumentsInRevision() also returns status of revision log 2022-09-18 12:45:40 +02:00
Uwe Steinmann
3721fcfc22 check for documents with missing revision date 2022-09-18 12:44:56 +02:00
Uwe Steinmann
94d6dd0511 some more documentation of method 2022-09-18 12:44:20 +02:00
Uwe Steinmann
4329729ae0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-16 07:02:46 +02:00
Uwe Steinmann
a453c0e6ef Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-15 20:06:21 +02:00
Uwe Steinmann
2ee4773357 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-14 20:42:30 +02:00
Uwe Steinmann
c4d5ebd24d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-14 10:48:57 +02:00
Uwe Steinmann
56a0b14fe9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-13 20:04:31 +02:00
Uwe Steinmann
ea2173b4ed set 'All' in paginator active if selected 2022-09-13 20:02:14 +02:00
Uwe Steinmann
b8c94556ca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-12 11:45:14 +02:00
Uwe Steinmann
620a5ff99d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-12 09:40:30 +02:00
Uwe Steinmann
ad35601bf2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-12 09:37:05 +02:00
Uwe Steinmann
57a90d93a6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-09 09:29:37 +02:00
Uwe Steinmann
589b213fe7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-09 07:53:54 +02:00
Uwe Steinmann
fdf7126a68 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-09 06:57:17 +02:00
Uwe Steinmann
5cd59a7a84 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-09 06:31:17 +02:00
Uwe Steinmann
3ccdf862bf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-07 17:12:08 +02:00
Uwe Steinmann
607251e02d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-07 16:57:46 +02:00
Uwe Steinmann
e76df4c71f create original file name from new document name when uploading document from the library folder. 2022-09-07 09:26:27 +02:00
Uwe Steinmann
04ce8ea28f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-07 09:08:54 +02:00
Uwe Steinmann
446f04c775 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-06 10:42:09 +02:00
Uwe Steinmann
225817d468 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-05 11:28:04 +02:00
Uwe Steinmann
f4b621de36 make it work with SeedDMS 6 2022-09-02 09:39:40 +02:00
Uwe Steinmann
9a22f0390a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-02 08:04:55 +02:00
Uwe Steinmann
da3946adc6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-09-01 07:49:36 +02:00
Uwe Steinmann
9a08430d5b add changes for 5.1.27 and 6.0.20 2022-08-31 20:59:12 +02:00
Uwe Steinmann
e5ad205169 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-31 20:57:17 +02:00
Uwe Steinmann
80067393f1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-31 20:39:43 +02:00
Uwe Steinmann
0539945bf1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-24 08:29:36 +02:00
Uwe Steinmann
dc7cf3ce86 remove duplicate export form 2022-08-23 08:30:27 +02:00
Uwe Steinmann
3a9abc5009 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-19 15:01:04 +02:00
Uwe Steinmann
fe419f4857 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-19 08:40:11 +02:00
Uwe Steinmann
20ac984a64 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-18 18:46:07 +02:00
Uwe Steinmann
751918ef17 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-18 13:21:53 +02:00
Uwe Steinmann
6211976f3c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-18 10:13:08 +02:00
Uwe Steinmann
73d748a025 move export below search button 2022-08-18 10:08:28 +02:00
Uwe Steinmann
e5057d8223 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-18 10:04:00 +02:00
Uwe Steinmann
6d9cc4039b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-18 09:25:13 +02:00
Uwe Steinmann
f12a9094db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-17 20:53:41 +02:00
Uwe Steinmann
365661afb8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-16 17:06:45 +02:00
Uwe Steinmann
f3e7d04674 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-12 10:55:37 +02:00
Uwe Steinmann
a0db4bcc6d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-08-12 10:53:32 +02:00
Uwe Steinmann
87a9db64f8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-27 09:25:53 +02:00
Uwe Steinmann
b8fd313e2d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-26 14:33:23 +02:00
Uwe Steinmann
85c190aad2 add changes for 6.0.20 2022-07-26 14:32:34 +02:00
Uwe Steinmann
995f7a5bad propperly get workflow log 2022-07-26 13:39:46 +02:00
Uwe Steinmann
6557d2edc9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-15 15:31:52 +02:00
Uwe Steinmann
3e45d6a13f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-15 12:10:15 +02:00
Uwe Steinmann
502ea86d8d fix merge error 2022-07-08 18:49:02 +02:00
Uwe Steinmann
418c42ae59 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-08 18:46:17 +02:00
Uwe Steinmann
16cdb8a323 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-07-06 14:01:30 +02:00
Uwe Steinmann
d991978144 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-28 17:42:10 +02:00
Uwe Steinmann
40bd123fe3 Merge branch 'seeddms-5.1.x' 2022-06-27 17:01:18 +02:00
Uwe Steinmann
2bc5b26175 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-22 22:13:50 +02:00
Uwe Steinmann
7deddf8f4e set role to button for each nav-item 2022-06-22 16:48:26 +02:00
Uwe Steinmann
2c42fd6a23 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-22 16:45:48 +02:00
Uwe Steinmann
6b5826ded4 check if totalreceipts != 0 2022-06-17 20:10:34 +02:00
Uwe Steinmann
dee7977016 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-16 17:07:21 +02:00
Uwe Steinmann
8bc93eac03 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-10 08:53:18 +02:00
Uwe Steinmann
7a7fca84b4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-09 16:56:06 +02:00
Uwe Steinmann
6af82069e8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-09 09:04:17 +02:00
Uwe Steinmann
821d9b1470 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-08 11:21:19 +02:00
Uwe Steinmann
38dd38d7c6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-06-02 17:37:21 +02:00
Uwe Steinmann
6254c8a41a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-31 20:05:59 +02:00
Uwe Steinmann
490fe09390 add changes for 6.0.19 2022-05-31 14:27:28 +02:00
Uwe Steinmann
a91003d5fa do not include bootbox.min.js 2022-05-31 14:27:05 +02:00
Uwe Steinmann
7ba81f50e3 fix deletion of task when using bootstrap4 theme 2022-05-31 14:25:23 +02:00
Uwe Steinmann
c6470efc6f fix deleting a document by clicking on the icon in the document list 2022-05-31 14:24:45 +02:00
Uwe Steinmann
d2c680280b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-30 17:48:18 +02:00
Uwe Steinmann
6d5d1a7703 check if IndexedDocument() set error msg, call right hook after indexing document 2022-05-30 13:07:30 +02:00
Uwe Steinmann
c52abe7198 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-25 11:34:08 +02:00
Uwe Steinmann
93f6b01c7f do not allow to set revision date if document status is 'in revision' 2022-05-25 11:33:44 +02:00
Uwe Steinmann
d641a8d2ed Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-23 09:34:55 +02:00
Uwe Steinmann
4ffe010d06 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-22 11:15:45 +02:00
Uwe Steinmann
332a7b2f3d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-21 19:11:11 +02:00
Uwe Steinmann
bf5aedf1b5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-21 11:19:23 +02:00
Uwe Steinmann
1f6a3c7f77 add list of notifications to debug menu 2022-05-21 11:00:16 +02:00
Uwe Steinmann
987cc5d164 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-21 10:59:30 +02:00
Uwe Steinmann
369dc80110 log type of receiver 2022-05-21 10:57:50 +02:00
Uwe Steinmann
eb4b28ea8c fix php warnings and propperly handle failure of cancelCheckout() 2022-05-20 17:40:04 +02:00
Uwe Steinmann
20b03dcbe0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-20 13:54:01 +02:00
Uwe Steinmann
af93db836e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-20 12:31:25 +02:00
Uwe Steinmann
1b15008870 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-19 19:26:19 +02:00
Uwe Steinmann
ecc70bc99a make progress bar a block for better positioning of popup box 2022-05-19 08:07:32 +02:00
Uwe Steinmann
cc341f6ed3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-17 08:20:16 +02:00
Uwe Steinmann
1ae35ca6ad do not show debug menu if all items are inaccessible 2022-05-17 07:45:05 +02:00
Uwe Steinmann
983af33300 use conversion mgr 2022-05-17 07:43:43 +02:00
Uwe Steinmann
9b07f6e943 pass logger to fulltextservice 2022-05-16 15:45:23 +02:00
Uwe Steinmann
30c2b8a493 do not set orderby when clicking on link in sidebar as it is undefined anyway 2022-05-13 17:53:38 +02:00
Uwe Steinmann
9a76df52bd fix documentation of execute() methods 2022-05-13 07:27:24 +02:00
Uwe Steinmann
307b524d11 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-12 17:35:36 +02:00
Uwe Steinmann
dfedd201dd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-10 18:33:41 +02:00
Uwe Steinmann
6fd868c5a7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-09 10:03:03 +02:00
Uwe Steinmann
c9e93c329c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-06 16:39:02 +02:00
Uwe Steinmann
87fe831973 removeFromProcesses() will not touch documents for which the new user does not have at least read access 2022-05-05 11:03:28 +02:00
Uwe Steinmann
5dab792dba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-03 18:22:14 +02:00
Uwe Steinmann
21989fadbb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-03 18:19:51 +02:00
Uwe Steinmann
17d1f2bffe fix checks in __removeFromProcesses() 2022-05-03 16:45:21 +02:00
Uwe Steinmann
7c1c81f7fc addRevisor and addRecipient return id of log entry 2022-05-03 16:44:43 +02:00
Uwe Steinmann
bef41ad838 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-05-03 08:13:36 +02:00
Uwe Steinmann
939a7dbce2 use require_once instead of include 2022-05-02 22:11:29 +02:00
Uwe Steinmann
b412f113bf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-30 15:55:29 +02:00
Uwe Steinmann
7370eebba7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-30 15:52:31 +02:00
Uwe Steinmann
d13f37cfec Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-30 14:58:41 +02:00
Uwe Steinmann
49c2e54e94 add missing status to getOverallStatusIcon() 2022-04-30 14:50:08 +02:00
Uwe Steinmann
8c43c709b0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-30 14:40:20 +02:00
Uwe Steinmann
16c560d549 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-30 14:11:51 +02:00
Uwe Steinmann
8907c2f20a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-29 18:32:59 +02:00
Uwe Steinmann
e383434a3d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-29 07:06:58 +02:00
Uwe Steinmann
b854d64757 fix merge errors 2022-04-29 07:04:52 +02:00
Uwe Steinmann
2014eae334 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-28 16:03:00 +02:00
Uwe Steinmann
34c7132847 translate '2_factor_auth' 2022-04-27 21:35:45 +02:00
Uwe Steinmann
24146db478 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-25 10:19:40 +02:00
Uwe Steinmann
6c3ecaf9a1 Merge branch 'seeddms-5.1.x' 2022-04-22 13:14:19 +02:00
Uwe Steinmann
15182713ea Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-19 18:37:52 +02:00
Uwe Steinmann
7c29d1d4e8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-19 18:12:38 +02:00
Uwe Steinmann
58e8306bb4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-19 14:14:50 +02:00
Uwe Steinmann
eca2701da1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-14 17:01:34 +02:00
Uwe Steinmann
9cab1880a7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-12 13:26:03 +02:00
Uwe Steinmann
202e607959 include files with require_once, check if $settings are set already 2022-04-12 07:15:56 +02:00
Uwe Steinmann
b558844841 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-08 12:44:34 +02:00
Uwe Steinmann
b48318d1da Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-07 14:39:21 +02:00
Uwe Steinmann
f8ac9090fb add optional parameter to getWorkflow() to retrieve data from tblWorkflowDocumentContent 2022-04-06 19:54:46 +02:00
Uwe Steinmann
d80d1be9de include inc.ClassAccessOperation.php because it is need at many places and the back button of the ErrorDlg works again 2022-04-04 08:42:26 +02:00
Uwe Steinmann
f24330740a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-04-04 08:26:51 +02:00
Uwe Steinmann
d90b01111e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-31 06:53:21 +02:00
Uwe Steinmann
43fe015049 add task to informa about upcoming events 2022-03-31 06:48:05 +02:00
Uwe Steinmann
6f4a1bab68 make methods public, add methods getUser() and setUser() 2022-03-31 06:36:48 +02:00
Uwe Steinmann
7a1836d33a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-30 11:39:47 +02:00
Uwe Steinmann
687d7eb0dd add entry for 6.0.18 2022-03-28 21:34:48 +02:00
Uwe Steinmann
9e92524fdb escape role name to prevent xss attack 2022-03-28 21:33:48 +02:00
Uwe Steinmann
283d051d3a initial code to check for upcomming events in calendar 2022-03-28 17:36:20 +02:00
Uwe Steinmann
988dc9deff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-28 08:31:40 +02:00
Uwe Steinmann
f5148c00c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-25 08:44:57 +01:00
Uwe Steinmann
6de426bbc3 call hook 'filenameDownloadItem' in search export and transmittal download 2022-03-25 08:44:32 +01:00
Uwe Steinmann
11942c825d filename can be passed to addItem() 2022-03-25 07:21:37 +01:00
Uwe Steinmann
48613b5897 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-23 11:27:53 +01:00
Uwe Steinmann
a5a2b877ce add entry for 6.0.18 2022-03-09 16:12:23 +01:00
Uwe Steinmann
b65d940259 move methods for updating, deleting transmittal item into trait, makes it work in bootstrap4 2022-03-09 16:11:43 +01:00
Uwe Steinmann
b88e05fe22 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-09 08:39:34 +01:00
Uwe Steinmann
a4f96c76d6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-07 15:20:24 +01:00
Uwe Steinmann
1e8da679b5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-04 09:36:00 +01:00
Uwe Steinmann
a156932843 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-03-03 09:04:47 +01:00
Uwe Steinmann
0652faf7c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-26 14:16:53 +01:00
Uwe Steinmann
eca5f3608f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-25 18:38:09 +01:00
Uwe Steinmann
dafa4813c1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-25 12:34:07 +01:00
Uwe Steinmann
b64ee6012c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-24 08:18:58 +01:00
Uwe Steinmann
95547cf6b8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-24 07:32:15 +01:00
Uwe Steinmann
aa9a30a98a do not include inc.ClassNotificationService.php and inc.ClassEmailNotify.php anymore 2022-02-24 07:29:04 +01:00
Uwe Steinmann
0869e97a1a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-22 17:55:01 +01:00
Uwe Steinmann
aa61028f08 set default value of checkbox with hidden input field 2022-02-22 17:53:17 +01:00
Uwe Steinmann
673bc9ec7d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-21 16:02:48 +01:00
Uwe Steinmann
275e81874a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-21 11:10:56 +01:00
Uwe Steinmann
98936632b2 call getLastWorkflowLog() instead of getWorkflowLog() 2022-02-21 11:08:15 +01:00
Uwe Steinmann
830f0258df add note for 6.0.18 2022-02-21 11:07:43 +01:00
Uwe Steinmann
f095e252ad getWorkflowLog() will always return all log entries if document is not in a workflow 2022-02-21 11:05:22 +01:00
Uwe Steinmann
68bb7bcfaf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-21 08:55:01 +01:00
Uwe Steinmann
659cdb4e6c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-21 07:15:01 +01:00
Uwe Steinmann
535a0b1b67 fix line indenting 2022-02-21 07:10:28 +01:00
Uwe Steinmann
0f417a2d7b handle docs in workflow proppeerly in verifyStatus() 2022-02-21 07:10:08 +01:00
Uwe Steinmann
87ee71a1a1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-18 18:15:05 +01:00
Uwe Steinmann
96933bb30d ensure setRole() is passed an object 2022-02-17 12:30:29 +01:00
Uwe Steinmann
b9c613ff83 handle role in addUser() propperly 2022-02-17 12:29:37 +01:00
Uwe Steinmann
b57dc78e2a replace checks isset(_workflow) with _workflow == null 2022-02-14 11:06:02 +01:00
Uwe Steinmann
f93af56f52 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-12 19:48:56 +01:00
Uwe Steinmann
b2fd7bb383 add entry for 6.0.18 2022-02-11 11:14:49 +01:00
Uwe Steinmann
3e63f1ffc0 init $ret in setStatus() 2022-02-11 10:56:14 +01:00
Uwe Steinmann
27b5af8ada propperly get workflow log (Closes #522) 2022-02-11 10:55:45 +01:00
Uwe Steinmann
9889bbe639 make role id an integer 2022-01-20 07:44:31 +01:00
Uwe Steinmann
3bdb215adf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-17 21:47:07 +01:00
Uwe Steinmann
056dd8bd09 new css with google fonts 2021-12-17 16:42:58 +01:00
Uwe Steinmann
2b0351325c remove html with $this->formField() 2021-12-17 16:42:40 +01:00
Uwe Steinmann
5e386597c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-15 17:19:23 +01:00
Uwe Steinmann
5ec5bab294 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-15 08:40:37 +01:00
Uwe Steinmann
b91745626a add entry for 6.0.18 2021-12-12 13:01:46 +01:00
Uwe Steinmann
7b87cc355d finish running cron jobs via web, result is returned as json 2021-12-12 12:58:42 +01:00
Uwe Steinmann
29a6882106 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-11 14:08:19 +01:00
Uwe Steinmann
6fbc6043eb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-10 15:13:42 +01:00
Uwe Steinmann
e78c8174d8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-05 07:52:25 +01:00
Uwe Steinmann
d4f4d5cfcd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-04 17:51:33 +01:00
Uwe Steinmann
f7f0721dba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-04 13:20:08 +01:00
Uwe Steinmann
a1b4b3b081 remove duplicate submit button 2021-12-03 20:55:59 +01:00
Uwe Steinmann
f7683f2176 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-03 20:41:14 +01:00
Uwe Steinmann
fa946be140 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-03 20:39:13 +01:00
Uwe Steinmann
6a54f7dac7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-03 07:26:27 +01:00
Uwe Steinmann
050aff4798 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-02 22:10:09 +01:00
Uwe Steinmann
58434abf10 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-01 16:54:43 +01:00
Uwe Steinmann
6e124f73f1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-12-01 11:14:22 +01:00
Uwe Steinmann
b01e2aa666 take out sending mails to owner 2021-11-30 17:17:28 +01:00
Uwe Steinmann
36110a85e7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-29 18:58:53 +01:00
Uwe Steinmann
684c316f86 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-29 11:31:26 +01:00
Uwe Steinmann
622b7a13bb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-28 08:44:06 +01:00
Uwe Steinmann
f635d0e546 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-27 13:51:15 +01:00
Uwe Steinmann
9ae7a54183 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-26 12:33:35 +01:00
Uwe Steinmann
45d0d0b9d7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-26 12:30:41 +01:00
Uwe Steinmann
4ef64199ab Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-26 10:05:24 +01:00
Uwe Steinmann
611be01cce Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-17 20:58:16 +01:00
Uwe Steinmann
e6766a3607 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-10 08:35:22 +01:00
Uwe Steinmann
efdb37399d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-09 09:34:34 +01:00
Uwe Steinmann
25e12c5f5e include Notification.php instead of setting services 2021-11-08 15:54:15 +01:00
Uwe Steinmann
542a6cb045 require basic auth and login as user cli_scheduler 2021-11-08 15:53:43 +01:00
Uwe Steinmann
31fda7e60e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-08 14:36:39 +01:00
Uwe Steinmann
f727843720 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-04 17:44:14 +01:00
Uwe Steinmann
4e5fefa4ba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-04 17:07:36 +01:00
Uwe Steinmann
ea5a9f499f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-03 16:18:06 +01:00
Uwe Steinmann
df94bc0c1a add spectrum-colorpicker2, new version of flot 2021-10-29 19:26:28 +02:00
Uwe Steinmann
07f50b4b95 install spectrum 2021-10-29 19:26:06 +02:00
Uwe Steinmann
fdda22b58d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-26 10:16:49 +02:00
Uwe Steinmann
adde8afc84 fix cols of formField 'textarea' 2021-10-26 10:15:21 +02:00
Uwe Steinmann
e40afa452c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-26 08:29:54 +02:00
Uwe Steinmann
da1bf3fb97 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-26 06:57:49 +02:00
Uwe Steinmann
9260382ef2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-22 09:46:36 +02:00
Uwe Steinmann
4c8a2496b6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-16 17:46:34 +02:00
Uwe Steinmann
b46795cbfe pass conversion mgr to task 2021-10-16 17:44:45 +02:00
Uwe Steinmann
e7303b6371 pass conversion mgr to previewer, list all conversion services 2021-10-16 17:44:11 +02:00
Uwe Steinmann
b2b61eb990 pass conversion mgr to constructor of task 2021-10-16 17:43:42 +02:00
Uwe Steinmann
3cd4763c0e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-15 13:53:55 +02:00
Uwe Steinmann
8e6828e36d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-15 13:50:46 +02:00
Uwe Steinmann
a830b18fc3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-10-06 15:19:14 +02:00
Uwe Steinmann
77a606cebe Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-30 07:56:50 +02:00
Uwe Steinmann
768631bf55 fix various errors and validation of form 2021-09-29 22:04:59 +02:00
Uwe Steinmann
3487a27f9d make comment required 2021-09-29 21:24:13 +02:00
Uwe Steinmann
43f7a94aa6 remove most of html code to create form 2021-09-29 21:23:51 +02:00
Uwe Steinmann
19266f1647 set return value and new status in verifyStatus() 2021-09-29 18:50:48 +02:00
Uwe Steinmann
2d3ec59c2d fix creation of instance of SeedDMS_AccessOperation 2021-09-29 18:30:06 +02:00
Uwe Steinmann
ab5aec99ba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-29 18:25:54 +02:00
Uwe Steinmann
cce3899688 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-28 16:22:56 +02:00
Uwe Steinmann
39ec44cd41 sewPwdExpiration() sets date internally not 'now' 2021-09-28 15:46:05 +02:00
Uwe Steinmann
b6a308e630 set default $role='3' in addUser() 2021-09-28 15:44:12 +02:00
Uwe Steinmann
d05a200ed6 add more packages needed for 6.0.x 2021-09-28 11:18:26 +02:00
Uwe Steinmann
8b68402bec Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-28 11:14:26 +02:00
Uwe Steinmann
0c1a795113 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-28 10:33:44 +02:00
Uwe Steinmann
3b55c458c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-22 10:54:54 +02:00
Uwe Steinmann
825ae7bfeb check access on RemoveDocumentFile and EditDocumentFile 2021-09-22 10:41:36 +02:00
Uwe Steinmann
24ae96b9fa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-09 12:07:17 +02:00
Uwe Steinmann
5904d22394 add dummy note in 6.0.17, update release date 2021-09-09 08:20:53 +02:00
Uwe Steinmann
753d808d2a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-09 08:19:51 +02:00
Uwe Steinmann
a343c4cc1c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-06 16:33:26 +02:00
Uwe Steinmann
7a1b03951e use methods in notification class for sending notifications 2021-09-01 17:45:56 +02:00
Uwe Steinmann
1398b614cd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-01 16:29:01 +02:00
Uwe Steinmann
9ea8a02893 fix task parameters of type 'select' 2021-09-01 16:25:54 +02:00
Uwe Steinmann
5cf3b5fc3e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-27 09:56:43 +02:00
Uwe Steinmann
6ccabf1c68 start change log for 6.0.17 2021-08-27 09:55:31 +02:00
Uwe Steinmann
4f3a7f6512 send notification on submit of reception 2021-08-27 09:55:08 +02:00
Uwe Steinmann
6fbfe15baf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-25 16:11:04 +02:00
Uwe Steinmann
43c1385e0f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-20 11:16:21 +02:00
Uwe Steinmann
11c97f4c41 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-20 11:02:53 +02:00
Uwe Steinmann
ef551e6923 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-20 11:01:13 +02:00
Uwe Steinmann
ada2730636 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-20 10:51:34 +02:00
Uwe Steinmann
7b807f8d67 correct processing of return value of getWorkflowLog() 2021-08-20 08:46:18 +02:00
Uwe Steinmann
40ce4a74e1 Merge branch 'seeddms-5.1.x' 2021-08-19 15:54:46 +02:00
Uwe Steinmann
f19ed34d25 pass notifier to constructor of SeedDMS_SchedulerTaskBase 2021-08-19 13:52:51 +02:00
Uwe Steinmann
bbcf7cb979 do send mail to disabled users or guests 2021-08-19 13:52:13 +02:00
Uwe Steinmann
99bc6becb6 do not check for sender in toList() because it is done in toIndividual() 2021-08-19 13:51:07 +02:00
Uwe Steinmann
0a6ce976c7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-18 12:42:46 +02:00
Uwe Steinmann
ef1113490d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-18 10:57:51 +02:00
Uwe Steinmann
5ddfa0e297 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-18 10:31:34 +02:00
Uwe Steinmann
73d27bc82b schedule next run before executing current run 2021-08-17 20:54:57 +02:00
Uwe Steinmann
be7aa1b4a8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-17 17:56:17 +02:00
Uwe Steinmann
749f7a2fb1 revert change of $myincpath 2021-08-06 09:19:54 +02:00
Uwe Steinmann
9e9995241d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-06 08:58:35 +02:00
Uwe Steinmann
46040dce7e add '/www' to $myincpath 2021-08-06 08:34:19 +02:00
Uwe Steinmann
8b34c4f82e fix width in task for creating preview 2021-08-06 08:33:34 +02:00
Uwe Steinmann
8bc9ab8f3c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-05 08:42:34 +02:00
Uwe Steinmann
9f20268d3b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-08-04 14:20:07 +02:00
Uwe Steinmann
cb0c51234e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-23 14:07:03 +02:00
Uwe Steinmann
58a46497f0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-21 16:11:33 +02:00
Uwe Steinmann
93c88a6f87 add changes for 6.0.16 2021-07-21 08:33:14 +02:00
Uwe Steinmann
50d528a831 fix export, export xlsx, do not collapse search form anymore 2021-07-21 08:13:15 +02:00
Uwe Steinmann
20dd55840e use replacement for PHPExcel() which is outdated for a long time, create xlsx instead of xls 2021-07-21 08:12:17 +02:00
Uwe Steinmann
74003313e8 pass url param 'includecontent' to view 2021-07-21 08:11:14 +02:00
Uwe Steinmann
09a60988fb parameter $urlparams of html_url() can be a string 2021-07-21 08:10:42 +02:00
Uwe Steinmann
23f05a4eb6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-20 17:32:01 +02:00
Uwe Steinmann
d7a936f6f1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-20 07:59:16 +02:00
Uwe Steinmann
532db722a6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-16 16:20:11 +02:00
Uwe Steinmann
75d716db26 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-14 21:10:57 +02:00
Uwe Steinmann
4401ce7b23 fix form validation, sync with UpdateDocument 2021-07-14 21:09:28 +02:00
Uwe Steinmann
74d1b11250 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-14 16:32:00 +02:00
Uwe Steinmann
3cfa3d2d7b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-14 15:27:48 +02:00
Uwe Steinmann
f2b0375df6 user warningMsg() instead of plain html code 2021-07-14 13:45:55 +02:00
Uwe Steinmann
64a5ea3d90 allow to cancel checkout if document was not modified 2021-07-14 13:28:26 +02:00
Uwe Steinmann
020e307240 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-14 12:03:12 +02:00
Uwe Steinmann
ca9e1c8860 check for null passed as folder to getFolderList() 2021-07-14 12:00:47 +02:00
Uwe Steinmann
59d9786a4c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-13 12:45:40 +02:00
Uwe Steinmann
e733b4fced add new method printAttribute() (just like in 5.1.x) 2021-07-12 19:47:34 +02:00
Uwe Steinmann
652acf4b86 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-12 19:45:02 +02:00
Uwe Steinmann
0bd2e2d83d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-11 20:42:56 +02:00
Uwe Steinmann
c5b9306918 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-11 20:18:16 +02:00
Uwe Steinmann
c91476fe80 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-10 22:28:35 +02:00
Uwe Steinmann
8767d170f1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-10 22:08:40 +02:00
Uwe Steinmann
e2960219c8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-09 14:53:16 +02:00
Uwe Steinmann
0b22b8d657 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-08 14:27:08 +02:00
Uwe Steinmann
f5068fa30f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-07 08:28:56 +02:00
Uwe Steinmann
30b8d4ddd9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-06 09:45:44 +02:00
Uwe Steinmann
cdb93920e4 html_link() takes care of wrapping the links into '<li>..</li>' 2021-07-06 07:35:00 +02:00
Uwe Steinmann
9a616999d3 new parameter $wrap can be passed to html_link() 2021-07-06 07:34:26 +02:00
Uwe Steinmann
00041b30bd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-06 06:44:29 +02:00
Uwe Steinmann
a289c8bbf6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-05 17:22:04 +02:00
Uwe Steinmann
cb601a82eb expect parameter of type SeedDMS_SchedulerTask in execute() 2021-07-05 10:08:51 +02:00
Uwe Steinmann
7218e47558 do not output date of last run if task hasn't run yet 2021-07-02 12:26:15 +02:00
Uwe Steinmann
56c35b5eba new method showConfigFolder() for selecting a folder, use for libraryFolder 2021-07-02 09:28:05 +02:00
Uwe Steinmann
486a685873 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-02 08:36:23 +02:00
Uwe Steinmann
5cbf98e832 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-01 12:45:53 +02:00
Uwe Steinmann
bffa24ad60 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-01 12:28:58 +02:00
Uwe Steinmann
2a23dbb0ef Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-07-01 12:25:19 +02:00
Uwe Steinmann
f67ba27e4b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-30 16:33:03 +02:00
Uwe Steinmann
8c4e20e649 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-29 11:27:25 +02:00
Uwe Steinmann
03a394906e more access control 2021-06-29 09:44:30 +02:00
Uwe Steinmann
bf23abad87 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-29 09:07:23 +02:00
Uwe Steinmann
e8a50e3101 more access checking 2021-06-29 09:04:57 +02:00
Uwe Steinmann
0c260f286b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-29 08:27:07 +02:00
Uwe Steinmann
38993eced2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-28 12:04:58 +02:00
Uwe Steinmann
635d8253fe add space after scriptname in add_log_line() 2021-06-28 11:15:56 +02:00
Uwe Steinmann
f02074c794 better message when running in dry mode 2021-06-28 11:15:36 +02:00
Uwe Steinmann
4e33cee86a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-28 09:32:00 +02:00
Uwe Steinmann
34a02f77d7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-28 09:26:22 +02:00
Uwe Steinmann
4de124d9ae take out logging of cachedir path 2021-06-28 09:19:20 +02:00
Uwe Steinmann
c57640f804 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-28 09:03:35 +02:00
Uwe Steinmann
39fc81b64b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-25 09:35:35 +02:00
Uwe Steinmann
db2c4a739e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-25 09:06:41 +02:00
Uwe Steinmann
371f348d88 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-25 08:59:18 +02:00
Uwe Steinmann
265865a9b6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-24 22:46:54 +02:00
Uwe Steinmann
f443f6544a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-24 14:37:50 +02:00
Uwe Steinmann
7635146a94 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-24 12:52:49 +02:00
Uwe Steinmann
363f417eb7 index folders in task 2021-06-24 12:51:44 +02:00
Uwe Steinmann
3827cdda27 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-24 11:41:23 +02:00
Uwe Steinmann
6d1aa2f347 use translated text 2021-06-24 08:43:09 +02:00
Uwe Steinmann
cefcdc966b use check_view_access instead of checking for admin 2021-06-23 17:55:35 +02:00
Uwe Steinmann
780d398d4c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-23 17:52:48 +02:00
Uwe Steinmann
8cbf9c803f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-23 17:18:21 +02:00
Uwe Steinmann
0754a794d3 fix creating AccessOperation 2021-06-23 09:01:24 +02:00
Uwe Steinmann
1a3d3c8f80 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-23 09:00:33 +02:00
Uwe Steinmann
ea5efd75d7 add access control for EditComment and EditAttributes 2021-06-22 11:33:54 +02:00
Uwe Steinmann
d1b967e9f3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-22 10:01:31 +02:00
Uwe Steinmann
aa4997a7e7 add access check 2021-06-22 09:48:28 +02:00
Uwe Steinmann
79e926324a add access check for EditFolder, MoveFolder, put logo in header 2021-06-22 09:47:16 +02:00
Uwe Steinmann
bfcad700af Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-21 18:10:50 +02:00
Uwe Steinmann
e91a66af21 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-16 14:28:33 +02:00
Uwe Steinmann
1ab5f83395 output info message above form if it set 2021-06-16 08:04:42 +02:00
Uwe Steinmann
e425120d7d mails listing expired documents can be send for each owner 2021-06-16 08:02:32 +02:00
Uwe Steinmann
fbc3be64a2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-14 17:24:10 +02:00
Uwe Steinmann
eeb3422e8a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-14 17:20:39 +02:00
Uwe Steinmann
4363566998 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-14 09:10:27 +02:00
Uwe Steinmann
514249a132 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-09 13:01:45 +02:00
Uwe Steinmann
3480a9550d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-08 09:01:51 +02:00
Uwe Steinmann
047b5bb3b0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-08 07:09:04 +02:00
Uwe Steinmann
74292d9304 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-07 21:15:48 +02:00
Uwe Steinmann
7c818d0913 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-01 11:02:45 +02:00
Uwe Steinmann
cd263e7353 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-06-01 07:07:12 +02:00
Uwe Steinmann
7485d0291a use jquery validation 2021-06-01 07:05:59 +02:00
Uwe Steinmann
5d6235ec0b place submit button outside of contentContainer 2021-06-01 06:49:55 +02:00
Uwe Steinmann
554b102356 fix layout (still not perfect) 2021-06-01 06:49:16 +02:00
Uwe Steinmann
012c3b7d22 use jquery validatation 2021-06-01 06:48:42 +02:00
Uwe Steinmann
33616f2c92 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-31 21:55:09 +02:00
Uwe Steinmann
64658c06cd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-31 21:53:08 +02:00
Uwe Steinmann
afb77c4365 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-25 15:40:20 +02:00
Uwe Steinmann
1132bd134e fix strict php warning 2021-05-25 09:02:59 +02:00
Uwe Steinmann
1a5a5ad6c8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-22 13:58:37 +02:00
Uwe Steinmann
3614bae91b get status of latest content 2021-05-22 13:12:38 +02:00
Uwe Steinmann
da86d0714d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-21 14:55:05 +02:00
Uwe Steinmann
88ace95baa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-21 10:40:25 +02:00
Uwe Steinmann
05a3405f07 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-21 10:11:42 +02:00
Uwe Steinmann
960edf45ea Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-17 13:34:08 +02:00
Uwe Steinmann
cd99928cd4 remove superflous fold mark 2021-05-17 07:01:50 +02:00
Uwe Steinmann
d939b40486 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-17 07:01:22 +02:00
Uwe Steinmann
447c035065 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-17 06:59:44 +02:00
Uwe Steinmann
b87f68c06e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-14 12:40:48 +02:00
Uwe Steinmann
a024cc19d3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-13 17:02:52 +02:00
Uwe Steinmann
9d9e05a54b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-13 17:00:54 +02:00
Uwe Steinmann
01a4251b9a remove extra div 2021-05-12 11:56:05 +02:00
Uwe Steinmann
c1ea7fd6cc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-12 11:39:49 +02:00
Uwe Steinmann
21b590d547 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-12 10:57:17 +02:00
Uwe Steinmann
686fef1f4e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-12 08:44:02 +02:00
Uwe Steinmann
7d34bd86b3 create previews of attachments 2021-05-11 22:13:35 +02:00
Uwe Steinmann
813587e8c9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-11 21:19:01 +02:00
Uwe Steinmann
0f9be43152 get status of latest content 2021-05-11 19:06:52 +02:00
Uwe Steinmann
d1690c917d show only detail preview for older versions 2021-05-11 19:02:48 +02:00
Uwe Steinmann
2c0729915c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-11 17:59:11 +02:00
Uwe Steinmann
1af7524b76 add changes of 6.0.16 2021-05-10 09:03:44 +02:00
Uwe Steinmann
266ae182f0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-10 09:03:15 +02:00
Uwe Steinmann
e0cfbd9b1b set converters in preview task, really check if preview was created 2021-05-10 08:45:52 +02:00
Uwe Steinmann
6d817b333c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-09 13:49:06 +02:00
Uwe Steinmann
9cd60901b1 set proper class for coloring a table row 2021-05-09 13:42:35 +02:00
Uwe Steinmann
c53b3babbd add task for creating missing preview images 2021-05-09 13:41:53 +02:00
Uwe Steinmann
53654444f0 use sys_get_temp_dir() instead of '/tmp' 2021-05-09 08:15:14 +02:00
Uwe Steinmann
3cee482b1c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 17:51:17 +02:00
Uwe Steinmann
1cb6816a6f use jwt for securing preview image 2021-05-07 14:37:36 +02:00
Uwe Steinmann
06025d03db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 13:23:12 +02:00
Uwe Steinmann
8d660b1f98 use json web token for authentication 2021-05-07 13:20:00 +02:00
Uwe Steinmann
7e73388730 add extra script for accessing preview images in rss feed 2021-05-07 12:41:03 +02:00
Uwe Steinmann
b2f0f2fa30 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 12:23:17 +02:00
Uwe Steinmann
3205f6ad82 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 09:34:09 +02:00
Uwe Steinmann
c519feb6c8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 08:54:46 +02:00
Uwe Steinmann
1d4e7364ec Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 08:27:05 +02:00
Uwe Steinmann
e014b37f44 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 07:53:34 +02:00
Uwe Steinmann
aece6cbaaa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-07 07:33:43 +02:00
Uwe Steinmann
bf62dd68e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 22:22:56 +02:00
Uwe Steinmann
065244c128 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 21:24:54 +02:00
Uwe Steinmann
39e9ba904a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 20:56:40 +02:00
Uwe Steinmann
faa47a9d2e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 20:54:17 +02:00
Uwe Steinmann
096312dbdb replace SeedDMS_Theme_Bootstrap by SeedDMS_Theme_Style 2021-05-06 20:25:54 +02:00
Uwe Steinmann
a99efecb7b pass email to setAuthor() only if it is syntactical correct 2021-05-06 20:25:18 +02:00
Uwe Steinmann
c640ece18b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 15:12:35 +02:00
Uwe Steinmann
8644e750e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 15:08:55 +02:00
Uwe Steinmann
9c9de6d0a1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 14:49:32 +02:00
Uwe Steinmann
189bbb540c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 14:33:48 +02:00
Uwe Steinmann
93192b7e3d support custom date format, remove some html 2021-05-06 14:22:50 +02:00
Uwe Steinmann
1a84cb311a make button primary 2021-05-06 14:22:37 +02:00
Uwe Steinmann
4fb43aef5a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 13:46:15 +02:00
Uwe Steinmann
791872adee Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 13:09:45 +02:00
Uwe Steinmann
5869abc56b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-06 11:19:30 +02:00
Uwe Steinmann
a17fcfcd8e do not collapse search form 2021-05-05 21:54:47 +02:00
Uwe Steinmann
c6c99bc384 minor correction of nav bar color 2021-05-05 21:54:26 +02:00
Uwe Steinmann
e557811acf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-05 15:31:20 +02:00
Uwe Steinmann
41b5caa302 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-05 14:34:08 +02:00
Uwe Steinmann
515a8de2e0 put export into accordion, use formFields 2021-05-05 14:31:13 +02:00
Uwe Steinmann
12896970cc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-05 14:13:03 +02:00
Uwe Steinmann
12a44b75a3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-05 14:12:09 +02:00
Uwe Steinmann
f5b8b5b45d major rework, make it work again 2021-05-04 18:25:33 +02:00
Uwe Steinmann
efd79e7521 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 18:11:34 +02:00
Uwe Steinmann
ff4151093c nicer layout 2021-05-04 18:08:31 +02:00
Uwe Steinmann
84a61cbd14 fix parameters of SeedDMS_AccessOperation() 2021-05-04 18:08:19 +02:00
Uwe Steinmann
d7a935b276 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 17:52:59 +02:00
Uwe Steinmann
0acfb9a265 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 17:30:23 +02:00
Uwe Steinmann
431a2e581c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 15:57:20 +02:00
Uwe Steinmann
4cb4cce922 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 13:53:29 +02:00
Uwe Steinmann
56adaae427 fix button for removing, downloading file 2021-05-04 12:20:52 +02:00
Uwe Steinmann
efd46b7a1d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 12:12:15 +02:00
Uwe Steinmann
b03e759053 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-04 09:04:25 +02:00
Uwe Steinmann
b7c46ccfda put form into contentContainer 2021-05-03 22:03:37 +02:00
Uwe Steinmann
90f849c801 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-03 17:49:43 +02:00
Uwe Steinmann
34b1d792ec Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-03 15:17:43 +02:00
Uwe Steinmann
bc1faf4d2e set initial document status from settings 2021-05-03 13:44:38 +02:00
Uwe Steinmann
0a8659826f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-03 08:07:29 +02:00
Uwe Steinmann
612a493873 fix syntax error in some php versions 2021-05-02 14:46:40 +02:00
Uwe Steinmann
c2f773ad85 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-02 14:41:33 +02:00
Uwe Steinmann
5e18a0b5b4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-02 13:06:29 +02:00
Uwe Steinmann
dcba7a7572 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-02 12:53:15 +02:00
Uwe Steinmann
da2174fafd docs and folders can be repaired again 2021-05-02 08:34:28 +02:00
Uwe Steinmann
f0fc1bfcc3 add class 'table-sm' to all tables 2021-05-02 08:08:11 +02:00
Uwe Steinmann
8773195f2a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-02 07:58:13 +02:00
Uwe Steinmann
29e9907c89 use showNavigationListWithBadges() 2021-05-02 07:54:02 +02:00
Uwe Steinmann
113db3fb01 change type of badge depending on count 2021-05-02 07:53:20 +02:00
Uwe Steinmann
539b5b02eb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-01 14:51:12 +02:00
Uwe Steinmann
ded86a39f2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-01 14:09:28 +02:00
Uwe Steinmann
a2645a4f16 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-01 13:55:21 +02:00
Uwe Steinmann
025e293f80 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-01 13:21:12 +02:00
Uwe Steinmann
db8e6f3ac6 fix call of constructor SeedDMS_AccessOperation() 2021-05-01 13:07:09 +02:00
Uwe Steinmann
6bb34b870a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-05-01 12:55:57 +02:00
Uwe Steinmann
4a23c1df86 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-30 16:13:30 +02:00
Uwe Steinmann
bb5a79ba70 add changes for 6.0.16 2021-04-30 11:48:28 +02:00
Uwe Steinmann
30eadac7cd move filter field for recipients into head of table 2021-04-30 11:48:03 +02:00
Uwe Steinmann
1873d77958 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-30 09:32:42 +02:00
Uwe Steinmann
4a678ad1ec escape workflow name, fix counting recipients 2021-04-30 09:31:50 +02:00
Uwe Steinmann
4d471ed592 fix layout of recipient list, add field to filter table rows 2021-04-30 09:25:11 +02:00
Uwe Steinmann
fb44b524fd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-30 09:04:24 +02:00
Uwe Steinmann
ed12ddb573 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-30 07:57:57 +02:00
Uwe Steinmann
d8b2433edd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-28 18:49:17 +02:00
Uwe Steinmann
e128e0e9dd add changes for 6.0.16 2021-04-28 14:26:34 +02:00
Uwe Steinmann
2c7ab1cfb1 move checkForDueRevisionWorkflow() into document version 2021-04-28 14:24:40 +02:00
Uwe Steinmann
a7deac7948 removeFromProcess() writes into log when a user was replaced (not just removed) 2021-04-28 07:05:15 +02:00
Uwe Steinmann
e279a2f8e8 do not prevent events, otherwise the checkbox doesn't work anymore 2021-04-27 22:17:26 +02:00
Uwe Steinmann
84fca7227c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-27 21:01:04 +02:00
Uwe Steinmann
86fa6269b4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-27 20:57:54 +02:00
Uwe Steinmann
7e7b12f1c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-27 17:11:09 +02:00
Uwe Steinmann
cad9e24ec3 fix progress bars of reception 2021-04-27 07:27:31 +02:00
Uwe Steinmann
42a7644d09 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-26 12:25:35 +02:00
Uwe Steinmann
4c47d69a88 remove old html code 2021-04-23 12:51:31 +02:00
Uwe Steinmann
33e746ff80 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-23 10:04:09 +02:00
Uwe Steinmann
54dabfed93 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-23 10:01:03 +02:00
Uwe Steinmann
132b904315 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-22 14:50:28 +02:00
Uwe Steinmann
fa241482c0 set type='danger' of submit button 2021-04-22 14:41:30 +02:00
Uwe Steinmann
f55db469c7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-22 14:38:51 +02:00
Uwe Steinmann
c9ae939bff add entry for 6.0.16 2021-04-22 14:32:47 +02:00
Uwe Steinmann
73a7f8a5f2 cancel checkout needs confirmation 2021-04-22 14:31:36 +02:00
Uwe Steinmann
39b81e03c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-22 14:19:35 +02:00
Uwe Steinmann
6a9def5358 issue warning if full text search is disabled 2021-04-22 09:28:25 +02:00
Uwe Steinmann
15c281095d set placeholder for frequency 2021-04-22 09:28:07 +02:00
Uwe Steinmann
7bdf60ebbf update execute() to meet latest changes in passed parameters 2021-04-21 17:44:17 +02:00
Uwe Steinmann
606f8d8df8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-21 12:39:54 +02:00
Uwe Steinmann
993a8056ec convert checkout date to readable date 2021-04-20 08:38:52 +02:00
Uwe Steinmann
81f091a44d fix class for list a actions 2021-04-19 19:54:24 +02:00
Uwe Steinmann
1fc4d21f27 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-19 19:52:25 +02:00
Uwe Steinmann
7b30188dd9 use class SeedDMS_Theme_Style, remove plain html 2021-04-19 19:45:40 +02:00
Uwe Steinmann
d3631a4f61 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-19 15:54:55 +02:00
Uwe Steinmann
d994232cc4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-19 08:38:41 +02:00
Uwe Steinmann
84b709c8cd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-19 06:26:51 +02:00
Uwe Steinmann
d8c534dff4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-18 20:16:22 +02:00
Uwe Steinmann
0695f35f8d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-18 13:02:30 +02:00
Uwe Steinmann
f3fb09762f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-18 08:45:23 +02:00
Uwe Steinmann
2c2d1e4dd8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-18 08:05:07 +02:00
Uwe Steinmann
130afd7d25 pass name of user as parameter to checkout msg 2021-04-15 06:34:56 +02:00
Uwe Steinmann
c0377d4e34 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-13 08:42:36 +02:00
Uwe Steinmann
8fcfd70bd6 Merge branch 'seeddms-5.1.x' 2021-04-13 07:43:43 +02:00
Uwe Steinmann
7c2ac0e6ad Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-12 17:54:25 +02:00
Uwe Steinmann
7aba671ade Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-08 10:56:51 +02:00
Uwe Steinmann
59e92a836f minor formating change 2021-04-08 10:55:33 +02:00
Uwe Steinmann
e10b7ff3e3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-06 22:04:43 +02:00
Uwe Steinmann
5dc5400e04 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-06 18:57:02 +02:00
Uwe Steinmann
e8d1369fad Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-06 11:18:11 +02:00
Uwe Steinmann
397081bdeb replace plain html with formField(), add help to task params 2021-04-06 07:56:47 +02:00
Uwe Steinmann
ceeedcdd92 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-05 10:24:28 +02:00
Uwe Steinmann
aa045478dd pass number of days to getDocumentList('DueRevisions') 2021-04-03 07:53:12 +02:00
Uwe Steinmann
c9faef81f7 use formField() instead of plain html, scroll to top for editing a task 2021-04-03 07:50:47 +02:00
Uwe Steinmann
6b0b517bed Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-30 13:03:50 +02:00
Uwe Steinmann
9bb2943719 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-29 13:48:39 +02:00
Uwe Steinmann
ee727c12ba Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-29 07:37:00 +02:00
Uwe Steinmann
8fbb5fe24c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-26 07:51:19 +01:00
Uwe Steinmann
67d8cf39fb regular users can no longer set owner of document while uploading 2021-03-25 16:37:56 +01:00
Uwe Steinmann
6defb81dd8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-23 17:43:58 +01:00
Uwe Steinmann
ffc259c680 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-22 06:40:03 +01:00
Uwe Steinmann
bbc4943973 pass 3rd parameter to formField() if returned by hook 2021-03-19 10:52:39 +01:00
Uwe Steinmann
a9a68d9d7b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-19 10:51:02 +01:00
Uwe Steinmann
64e6e8f1c4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-17 08:09:13 +01:00
Uwe Steinmann
18cfdb3efe Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-16 19:15:23 +01:00
Uwe Steinmann
e728633349 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-15 16:45:51 +01:00
Uwe Steinmann
1710e5278b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-15 16:37:07 +01:00
Uwe Steinmann
fd23364bde Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-15 12:24:27 +01:00
Uwe Steinmann
c7f8c157c6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-14 14:14:37 +01:00
Uwe Steinmann
70b2fa45e4 check if $recipients['i'] and ['g'] are set instead of $recipients 2021-03-12 21:54:52 +01:00
Uwe Steinmann
05e1f04773 fix merge error 2021-03-12 10:13:57 +01:00
Uwe Steinmann
c39fbcb70d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-12 10:12:30 +01:00
Uwe Steinmann
c8aca99462 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-10 15:59:25 +01:00
Uwe Steinmann
0c08af7246 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-10 12:22:19 +01:00
Uwe Steinmann
58f349e295 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-10 09:15:57 +01:00
Uwe Steinmann
c494afa49c wrong ticket number, must be #503 not #504 2021-03-08 08:04:53 +01:00
Uwe Steinmann
7f0ed73f74 close Ticket #504 2021-03-08 08:03:23 +01:00
Uwe Steinmann
1df630a28e fix downloading approval file 2021-03-08 08:02:11 +01:00
Uwe Steinmann
347c740f1f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-06 16:27:48 +01:00
Uwe Steinmann
5e3f5fc8f0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-05 07:24:26 +01:00
Uwe Steinmann
7574615b3c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-02 11:57:49 +01:00
Uwe Steinmann
664b881eb7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-03-01 18:38:13 +01:00
Uwe Steinmann
b9e12a82ae remove old table layout and use formField() 2021-03-01 09:26:37 +01:00
Uwe Steinmann
7292ceb83c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-25 17:06:47 +01:00
Uwe Steinmann
ad49c78302 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-25 12:06:08 +01:00
Uwe Steinmann
ff5580fa7e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-24 18:56:52 +01:00
Uwe Steinmann
5b9df18756 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-24 18:24:23 +01:00
Uwe Steinmann
53ee447d84 get logger in execute() 2021-02-24 15:11:20 +01:00
Uwe Steinmann
a0ef972028 send expired docs mail as html, log sending mail 2021-02-24 15:01:13 +01:00
Uwe Steinmann
47b3416b5b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-24 13:45:40 +01:00
Uwe Steinmann
4f650f3d2b use new methods getMandatoryReviewers and getMandatoryApprovers 2021-02-24 13:33:53 +01:00
Uwe Steinmann
bb779c678c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-24 13:29:35 +01:00
Uwe Steinmann
8e78a217fc add advanced access control for folder, do not show delete doc/folder button without access 2021-02-24 10:23:51 +01:00
Uwe Steinmann
826a6ae109 add check_view_access 2021-02-24 10:23:01 +01:00
Uwe Steinmann
2fd21b9792 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-24 06:16:34 +01:00
Uwe Steinmann
58e1abe568 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 21:05:38 +01:00
Uwe Steinmann
41e2d7b3be Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 20:49:59 +01:00
Uwe Steinmann
2650ff4d7f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 20:37:38 +01:00
Uwe Steinmann
bc06fd60f0 include Utils.php 2021-02-23 20:16:26 +01:00
Uwe Steinmann
2850298297 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 12:22:29 +01:00
Uwe Steinmann
b0868e9726 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 11:50:13 +01:00
Uwe Steinmann
a018a1602a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 08:43:31 +01:00
Uwe Steinmann
ec8d2ab8b3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-23 07:15:29 +01:00
Uwe Steinmann
d22d21d157 cancel checkout if versions mismatch 2021-02-18 16:32:32 +01:00
Uwe Steinmann
d82bd687aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-16 21:47:46 +01:00
Uwe Steinmann
02a830e74c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-16 14:42:09 +01:00
Uwe Steinmann
16c8102392 send list of expired docs to configured email address 2021-02-15 19:04:23 +01:00
Uwe Steinmann
5ac51f3c89 getDocumentList() can return sleeping revision 2021-02-11 12:24:07 +01:00
Uwe Steinmann
0d43c618cd getCurrentDatetime() takes parameter for day offset 2021-02-11 12:23:35 +01:00
Uwe Steinmann
68a16ce372 SeedDMS_Core_DMS::getDocumentList() uses ambiguous column name when sorting by status 2021-02-11 08:36:07 +01:00
Uwe Steinmann
3931227789 set new/old status code in notification mail, fix sending mail 2021-02-10 15:36:52 +01:00
Uwe Steinmann
6fa0849924 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-09 11:16:55 +01:00
Uwe Steinmann
7d93bccee6 replace old table layout 2021-02-09 11:09:02 +01:00
Uwe Steinmann
e68608bf04 check for tasks in all possible lists 2021-02-09 09:18:38 +01:00
Uwe Steinmann
7696dc66b8 no need to init task lists 2021-02-09 09:18:21 +01:00
Uwe Steinmann
d53318b917 set recvtyp to NOTIFICATION approval_submit notification 2021-02-08 18:55:18 +01:00
Uwe Steinmann
aaec9a5410 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-06 18:02:04 +01:00
Uwe Steinmann
531e11ce57 pass document status to notification 2021-02-05 14:22:04 +01:00
Uwe Steinmann
c524add775 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-05 13:28:34 +01:00
Uwe Steinmann
92949d8887 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-05 10:56:27 +01:00
Uwe Steinmann
2f23a09f24 update changes for 6.0.15 2021-02-05 07:31:47 +01:00
Uwe Steinmann
445664ed53 do not count expired documents in task list anymore 2021-02-05 07:30:00 +01:00
Uwe Steinmann
9186cf66c3 expired documents can be skipped from counting in countTasks() 2021-02-05 07:28:46 +01:00
Uwe Steinmann
3ac58509cc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-04 12:26:59 +01:00
Uwe Steinmann
d5cef4fabf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-04 11:15:03 +01:00
Uwe Steinmann
4bfb3795bd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-02 22:03:54 +01:00
Uwe Steinmann
8197f37117 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-02 14:56:53 +01:00
Uwe Steinmann
73b1051d82 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-02 13:10:37 +01:00
Uwe Steinmann
6025092793 set url of notification mail 2021-02-02 13:07:57 +01:00
Uwe Steinmann
93f0faa145 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-02 10:21:35 +01:00
Uwe Steinmann
b971932c88 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-01 13:42:35 +01:00
Uwe Steinmann
2fe261492c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-02-01 13:15:40 +01:00
Uwe Steinmann
aaa40c6075 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-31 13:48:42 +01:00
Uwe Steinmann
82784f4aed set guid to whole url 2021-01-30 15:40:19 +01:00
Uwe Steinmann
dc18b39305 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-30 15:09:04 +01:00
Uwe Steinmann
c5247b8abf escape owner name and email 2021-01-30 15:04:12 +01:00
Uwe Steinmann
f32f39bb6a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-29 14:22:12 +01:00
Uwe Steinmann
f1f574c412 add changes for 6.0.15 2021-01-29 14:20:36 +01:00
Uwe Steinmann
780be78d36 add searching for revision date 2021-01-29 14:20:05 +01:00
Uwe Steinmann
aa8290e03b add searching fro revision date 2021-01-29 14:19:44 +01:00
Uwe Steinmann
935d8a7b68 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-29 10:51:19 +01:00
Uwe Steinmann
768345a2ef Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-29 10:35:45 +01:00
Uwe Steinmann
6a3939158b add new notification receiver types, pass recv type to notif. service 2021-01-29 10:12:42 +01:00
Uwe Steinmann
8c2aac4d98 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-29 10:02:45 +01:00
Uwe Steinmann
8129221b57 escape email address, use translated phrase 2021-01-28 12:02:22 +01:00
Uwe Steinmann
788b5b0014 escape email address 2021-01-28 12:01:59 +01:00
Uwe Steinmann
768c02866c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-27 16:30:10 +01:00
Uwe Steinmann
2d4c7b7581 fix calculation of checksum 2021-01-26 18:06:17 +01:00
Uwe Steinmann
d6e652ec45 add changeds for 6.0.15 2021-01-26 15:44:02 +01:00
Uwe Steinmann
a7286be63a add a new task for checking the checksum of all versions 2021-01-26 15:42:45 +01:00
Uwe Steinmann
599786bcb0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-26 13:31:02 +01:00
Uwe Steinmann
363fdf7a1a list docs and folder that fail the general object check 2021-01-26 12:03:34 +01:00
Uwe Steinmann
590a93525c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-25 10:09:47 +01:00
Uwe Steinmann
518eecde18 fix syntax error 2021-01-18 08:45:21 +01:00
Uwe Steinmann
59c59f136a fix typo in comment 2021-01-18 07:16:21 +01:00
Uwe Steinmann
b18fb02303 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-15 10:16:33 +01:00
Uwe Steinmann
a2c82409c9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-15 09:48:36 +01:00
Uwe Steinmann
663d660e29 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-14 22:35:31 +01:00
Uwe Steinmann
ec41921691 use phrase select_attr instead of select_attribute_value 2021-01-14 13:59:20 +01:00
Uwe Steinmann
20bc412a17 check if document exists 2021-01-14 09:46:34 +01:00
Uwe Steinmann
feec95eff7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-13 13:18:47 +01:00
Uwe Steinmann
df76dbf35a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-13 09:05:39 +01:00
Uwe Steinmann
e847ff2647 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-11 09:07:06 +01:00
Uwe Steinmann
5a30032375 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-01-08 12:00:36 +01:00
Uwe Steinmann
6f0803e698 Merge branch 'seeddms-5.1.x' 2020-12-29 09:15:13 +01:00
Uwe Steinmann
3ddd18eb84 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-29 08:27:43 +01:00
Uwe Steinmann
31ac06cfa8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-23 06:25:46 +01:00
Uwe Steinmann
1f40945218 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-21 15:51:19 +01:00
Uwe Steinmann
8d38bb7669 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-18 14:58:11 +01:00
Uwe Steinmann
649a2d280d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-18 14:37:15 +01:00
Uwe Steinmann
d6106c0673 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-18 12:45:56 +01:00
Uwe Steinmann
b93e6768c4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-18 10:55:18 +01:00
Uwe Steinmann
f80cb6c24f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-18 10:44:33 +01:00
Uwe Steinmann
1c1d547e92 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-17 18:38:04 +01:00
Uwe Steinmann
77a59e008b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-17 13:43:22 +01:00
Uwe Steinmann
2c008bafee allow editAttributes in S_IN_REVISION and S_DRAFT_APP 2020-12-17 09:37:50 +01:00
Uwe Steinmann
8e1e94e01a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-16 16:51:00 +01:00
Uwe Steinmann
5323feca9b add hook preRecipientsTab 2020-12-16 10:41:52 +01:00
Uwe Steinmann
0ac709b3c8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-15 21:39:37 +01:00
Uwe Steinmann
1d72fea524 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-15 20:21:24 +01:00
Uwe Steinmann
f7a96e6888 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-15 17:42:32 +01:00
Uwe Steinmann
2d4007d62f fix comment 2020-12-15 17:05:04 +01:00
Uwe Steinmann
e25fda8e9b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-15 10:03:45 +01:00
Uwe Steinmann
faf45dc253 searchdocs returns only docs with at least read access 2020-12-15 10:02:30 +01:00
Uwe Steinmann
0c399ced95 fix call of getDocumentChooserHtml() 2020-12-15 10:02:18 +01:00
Uwe Steinmann
6e2133747d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-14 18:47:11 +01:00
Uwe Steinmann
f7bedcdbd8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-14 18:18:40 +01:00
Uwe Steinmann
f3cc82a780 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-14 17:20:37 +01:00
Uwe Steinmann
a80f177691 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-14 15:00:31 +01:00
Uwe Steinmann
63c0804e07 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-14 10:52:10 +01:00
Uwe Steinmann
c369950458 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-13 09:11:40 +01:00
Uwe Steinmann
b65c62e370 fix error when checking for manager 2020-12-12 15:57:14 +01:00
Uwe Steinmann
d46d6821fc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-11 09:28:10 +01:00
Uwe Steinmann
410eeecd7f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-11 09:17:20 +01:00
Uwe Steinmann
e3d7a6f464 show path and name of selected doc/folder in doc/folder chooser as title 2020-12-11 09:13:04 +01:00
Uwe Steinmann
0d9cdf7dcd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-10 13:54:21 +01:00
Uwe Steinmann
52f5dbdcfa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-09 19:55:29 +01:00
Uwe Steinmann
6dd96137bf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-07 20:45:32 +01:00
Uwe Steinmann
020dfb00d2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-01 22:05:28 +01:00
Uwe Steinmann
fcab6f5a09 format date with getLongReadableDate() 2020-12-01 21:59:02 +01:00
Uwe Steinmann
bf22fe7e6a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-01 21:48:21 +01:00
Uwe Steinmann
3e0e8a1b8d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-01 18:38:22 +01:00
Uwe Steinmann
104952d644 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-01 12:42:48 +01:00
Uwe Steinmann
2158225795 put revision date into log messages 2020-12-01 12:37:13 +01:00
Uwe Steinmann
8b796353a5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-26 10:56:56 +01:00
Uwe Steinmann
67a8d10797 add discarding of checked out document 2020-11-26 09:14:03 +01:00
Uwe Steinmann
c9a2aaca9c add notes for 6.0.14 2020-11-26 09:13:37 +01:00
Uwe Steinmann
5e8de41b2e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-24 17:48:37 +01:00
Uwe Steinmann
a182717d4a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-24 09:28:21 +01:00
Uwe Steinmann
152c943d5a SeedDMS_Core_Document::getCheckOutInfo() returns all checkout versions 2020-11-24 08:04:44 +01:00
Uwe Steinmann
858c449489 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-22 12:53:23 +01:00
Uwe Steinmann
ab438f18d9 issue warning when deleting a checked out document 2020-11-22 11:39:57 +01:00
Uwe Steinmann
ffef8d2417 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-16 16:56:21 +01:00
Uwe Steinmann
78aab08ebd do not show the task menu at all, if there are no tasks 2020-11-16 16:50:37 +01:00
Uwe Steinmann
f440d8bf54 call hook filterList 2020-11-15 07:44:09 +01:00
Uwe Steinmann
15d05d6ace Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-13 11:24:43 +01:00
Uwe Steinmann
f47ad55223 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-11 17:42:21 +01:00
Uwe Steinmann
a80f710317 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-11 17:35:57 +01:00
Uwe Steinmann
6f2581bba2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-09 16:04:03 +01:00
Uwe Steinmann
ab5e96a5ca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-09 15:14:36 +01:00
Uwe Steinmann
f1aed51047 add method callHook() to class SeedDMS_SchedulerTaskBase 2020-11-09 15:03:06 +01:00
Uwe Steinmann
715f6ec04e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-11-05 08:41:45 +01:00
Uwe Steinmann
65a1b64db9 remove old code which was already removed in 5.1.x 2020-10-28 14:37:32 +01:00
Uwe Steinmann
3014b94111 fix syntax error 2020-10-28 14:35:05 +01:00
Uwe Steinmann
6ed79ac5dc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-28 13:57:05 +01:00
Uwe Steinmann
598529da7a add item for 6.0.14 2020-10-23 18:48:32 +02:00
Uwe Steinmann
88155c8cbf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-23 18:47:59 +02:00
Uwe Steinmann
5a166d6a2b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-23 17:56:11 +02:00
Uwe Steinmann
40f410a762 check for workflow and workflowstate 2020-10-23 16:27:06 +02:00
Uwe Steinmann
0cc4fccd7f show list of recject and docs that need attention if for traditional_only_approval 2020-10-23 16:26:30 +02:00
Uwe Steinmann
d627aff69c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-23 13:31:26 +02:00
Uwe Steinmann
18c7a910bb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-22 13:14:29 +02:00
Uwe Steinmann
024a61319e fix typo in printDocumentChooserHtml() 2020-10-22 12:40:35 +02:00
Uwe Steinmann
867d676ef2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-22 12:31:22 +02:00
Uwe Steinmann
5bfc79ceff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-22 07:39:56 +02:00
Uwe Steinmann
1617518282 show debug menu only if debug mode is on 2020-10-21 21:49:48 +02:00
Uwe Steinmann
71d9e14d69 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-21 09:37:46 +02:00
Uwe Steinmann
831dff03db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-16 16:01:54 +02:00
Uwe Steinmann
3b0ee6c3e3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-08 09:36:41 +02:00
Uwe Steinmann
3f74df0ae4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-07 15:21:01 +02:00
Uwe Steinmann
dc8c8670db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-06 14:24:57 +02:00
Uwe Steinmann
eb0367bd7c document links can be added by regular users again 2020-10-06 06:37:07 +02:00
Uwe Steinmann
73fe0e37ff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-05 17:15:09 +02:00
Uwe Steinmann
16e4437032 more packages 2020-10-01 10:52:49 +02:00
Uwe Steinmann
c81a2554aa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-30 11:04:52 +02:00
Uwe Steinmann
8d2de27828 add indexing task 2020-09-30 09:11:13 +02:00
Uwe Steinmann
9b357ec3d9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-29 17:17:23 +02:00
Uwe Steinmann
b8652ec951 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-29 17:02:26 +02:00
Uwe Steinmann
94e57c6a5b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-29 16:40:03 +02:00
Uwe Steinmann
5d28744758 Merge branch 'seeddms-5.1.x' into master 2020-09-29 14:25:14 +02:00
Uwe Steinmann
237fb9af42 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-29 13:53:41 +02:00
Uwe Steinmann
4c1acfe6dd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-29 09:57:21 +02:00
Uwe Steinmann
a71da52667 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-28 19:21:54 +02:00
Uwe Steinmann
12e85f66c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-27 10:34:52 +02:00
Uwe Steinmann
c2df7a2421 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-25 09:24:44 +02:00
Uwe Steinmann
e38e16bf69 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-25 08:53:55 +02:00
Uwe Steinmann
78948a3f51 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-24 11:56:29 +02:00
Uwe Steinmann
5148f27a01 set propper id of input field for library document to fix validation 2020-09-24 11:42:54 +02:00
Uwe Steinmann
d9c1d2f5af add item for 6.0.13 2020-09-24 08:56:58 +02:00
Uwe Steinmann
76f6500fd4 sync checkin code with update document code 2020-09-24 08:55:30 +02:00
Uwe Steinmann
5e1bb70d9b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-24 08:32:41 +02:00
Uwe Steinmann
c0b7f1a395 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-23 15:56:54 +02:00
Uwe Steinmann
b8b88b1ba3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-23 13:12:41 +02:00
Uwe Steinmann
fdfad60c97 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-23 08:55:44 +02:00
Uwe Steinmann
0b5ced7efb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-23 08:47:06 +02:00
Uwe Steinmann
36215f676a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-23 08:41:44 +02:00
Uwe Steinmann
dfad2e581b nicer layout for list of revisors and recepients 2020-09-23 07:25:31 +02:00
Uwe Steinmann
467e76b5b0 make button primary 2020-09-22 11:26:21 +02:00
Uwe Steinmann
28d45c0270 use 'text-xxx' class from bootstrap instead of own classes 2020-09-22 11:25:44 +02:00
Uwe Steinmann
f0bdb0fda3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-22 10:24:19 +02:00
Uwe Steinmann
505f0f97b7 check for access on view FolderAccess 2020-09-22 06:59:20 +02:00
Uwe Steinmann
62cf4f3fba add missing access check for FolderNotify 2020-09-21 18:00:34 +02:00
Uwe Steinmann
1de3bf1d41 init $menuitems for menu earlier 2020-09-21 11:03:19 +02:00
Uwe Steinmann
52e336ea4b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-18 19:24:59 +02:00
Uwe Steinmann
9a1d92d250 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-18 19:16:58 +02:00
Uwe Steinmann
71134eb29c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-18 07:48:41 +02:00
Uwe Steinmann
2c43ef2c96 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-17 15:57:41 +02:00
Uwe Steinmann
d06e5fa3fb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-17 09:27:08 +02:00
Uwe Steinmann
630fefa3a8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-15 12:14:56 +02:00
Uwe Steinmann
5a32f4b7c5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-07 16:21:15 +02:00
Uwe Steinmann
94b8690266 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-06 07:46:51 +02:00
Uwe Steinmann
45f1184696 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-06 07:32:40 +02:00
Uwe Steinmann
4770364c45 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-06 07:27:15 +02:00
Uwe Steinmann
8ec772c504 check if download file can be created 2020-09-04 14:10:24 +02:00
Uwe Steinmann
a736d60df5 fix creation of zip files, create temp file in sys_get_temp_dir() 2020-09-04 14:09:53 +02:00
Uwe Steinmann
faecb589cb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-04 13:23:35 +02:00
Uwe Steinmann
131d2b4645 close bug #487 in 6.0.13 2020-09-04 09:44:49 +02:00
Uwe Steinmann
4c64b316db create download file in system tmp, better error checking (Closes: #487) 2020-09-04 09:43:18 +02:00
Uwe Steinmann
01062a16a5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-04 09:38:32 +02:00
Uwe Steinmann
52dfa8f401 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-04 09:31:30 +02:00
Uwe Steinmann
3d40b14691 read env var SEEDDMS_CONFIG_FILE 2020-09-03 16:04:57 +02:00
Uwe Steinmann
480a130180 fix import of role 2020-09-03 14:22:11 +02:00
Uwe Steinmann
a78800e036 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-03 14:21:30 +02:00
Uwe Steinmann
a17220d373 Merge branch 'seeddms-5.1.x' into master 2020-09-02 21:25:53 +02:00
Uwe Steinmann
ce2e6c61d2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-02 09:01:18 +02:00
Uwe Steinmann
a5994e3011 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-01 15:15:07 +02:00
Uwe Steinmann
1a9e7bde1b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-01 11:17:02 +02:00
Uwe Steinmann
ac81ce4335 add changes for 6.0.12 2020-08-31 15:41:24 +02:00
Uwe Steinmann
8865f61a54 show menu tasks in legacy mode (Closes #485) 2020-08-31 15:35:54 +02:00
Uwe Steinmann
012dbeaf27 fix access on workflow object 2020-08-31 15:31:29 +02:00
Uwe Steinmann
ee656527c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-31 14:47:09 +02:00
Uwe Steinmann
10ecff6142 better check fro repair parameter 2020-08-31 13:18:05 +02:00
Uwe Steinmann
9e5224a661 fix typo in var name 2020-08-31 13:01:40 +02:00
Uwe Steinmann
d1ad6383d2 update notes for 5.1.19 2020-08-28 15:37:02 +02:00
Uwe Steinmann
031408fdae remove duplicate release 5.1.17 2020-08-28 15:33:59 +02:00
Uwe Steinmann
29471ea6b3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-28 13:11:40 +02:00
Uwe Steinmann
9f491dce6d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-28 12:34:26 +02:00
Uwe Steinmann
67cb38bd54 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-27 08:52:58 +02:00
Uwe Steinmann
aa3384f28b update icons from font-awesome 3.2.x to 4.7.x 2020-08-27 08:48:43 +02:00
Uwe Steinmann
600d14ed88 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-27 08:27:19 +02:00
Uwe Steinmann
19502debea Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-21 14:06:21 +02:00
Uwe Steinmann
7b78a1ac69 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-20 19:59:26 +02:00
Uwe Steinmann
276b62082b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-14 11:12:07 +02:00
Uwe Steinmann
caea759aa9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-12 09:19:09 +02:00
Uwe Steinmann
db6456d698 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-12 07:27:01 +02:00
Uwe Steinmann
e3bb44d504 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-10 07:34:14 +02:00
Uwe Steinmann
4828c5ba63 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-05 18:53:08 +02:00
Uwe Steinmann
b89b2a9254 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-05 18:45:09 +02:00
Uwe Steinmann
6c84cab7d4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-05 06:45:51 +02:00
Uwe Steinmann
ca5457141d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-03 12:52:02 +02:00
Uwe Steinmann
446472c3b1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-01 13:50:43 +02:00
Uwe Steinmann
709d362b02 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-30 11:06:28 +02:00
Uwe Steinmann
54dea818f7 Merge branch 'seeddms-5.1.x' into master 2020-07-27 20:29:54 +02:00
Uwe Steinmann
08d2cc389e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-27 20:06:38 +02:00
Uwe Steinmann
680818a760 changes for 6.0.11 2020-07-27 18:43:27 +02:00
Uwe Steinmann
096f9773dc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-27 15:33:40 +02:00
Uwe Steinmann
ab8b42f960 add Content-Type to javascript file 2020-07-27 15:33:24 +02:00
Uwe Steinmann
53d33f0d7a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-22 15:10:45 +02:00
Uwe Steinmann
2edf1251c7 fix select menu for owner 2020-07-22 15:09:25 +02:00
Uwe Steinmann
d664e166b6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-22 14:57:07 +02:00
Uwe Steinmann
9f49460ee9 show container around add attachment button only if button is visible 2020-07-21 16:07:51 +02:00
Uwe Steinmann
508e1b74d3 fixed name of view parameter previewConverters 2020-07-21 09:26:17 +02:00
Uwe Steinmann
5ba96000c1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-21 07:30:23 +02:00
Uwe Steinmann
0d4cd6a0be check if converters['preview'] exists 2020-07-21 07:17:19 +02:00
Uwe Steinmann
9c8f737dcd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-21 07:08:57 +02:00
Uwe Steinmann
a34cd8b4ee add new revisor when transfering processes even in status 'sleeping' 2020-07-20 19:31:47 +02:00
Uwe Steinmann
8eec73b4be add more documentation is addRevisor() 2020-07-20 19:30:36 +02:00
Uwe Steinmann
77c2841d40 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-03 06:48:35 +02:00
Uwe Steinmann
00d9a8c239 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-07-02 17:42:33 +02:00
Uwe Steinmann
4bd68ac535 keep documents from being index again unless they have really changed 2020-07-02 17:41:09 +02:00
Uwe Steinmann
38d8aebb49 allow select menu for task parameters 2020-07-02 17:19:07 +02:00
Uwe Steinmann
fd0a362578 allow to disable task when creating 2020-07-01 15:52:12 +02:00
Uwe Steinmann
28aed4d11a fix error msg when user cli_scheduler does not exists 2020-07-01 09:05:18 +02:00
Uwe Steinmann
e64ef5fae3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-29 08:23:06 +02:00
Uwe Steinmann
fbfd3644c7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-29 07:33:49 +02:00
Uwe Steinmann
e440985fb9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-28 19:54:39 +02:00
Uwe Steinmann
db668791d1 check for user cli_scheduler before running any tasks 2020-06-28 19:24:12 +02:00
Uwe Steinmann
9a8b13a1cc check if $recipients is set 2020-06-28 19:23:38 +02:00
Uwe Steinmann
b44a368d6d use new method resolveTask() 2020-06-28 13:59:54 +02:00
Uwe Steinmann
af9dc81ba4 add method resolveTask() 2020-06-28 13:58:32 +02:00
Uwe Steinmann
cd3026a88a remove spaces 2020-06-28 13:57:34 +02:00
Uwe Steinmann
b14326e1ad more precise check for available task 2020-06-27 12:27:59 +02:00
Uwe Steinmann
9eae07fae9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-25 08:57:02 +02:00
Uwe Steinmann
cfc2ca1e24 support for additional parameters of type 'password' 2020-06-25 08:54:37 +02:00
Uwe Steinmann
619e8a8d30 do not output passwords as clear text 2020-06-25 08:54:10 +02:00
Uwe Steinmann
31720be0fe add prototype functions, add getAdditionalParametersByName() 2020-06-25 08:53:34 +02:00
Uwe Steinmann
395d71b705 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-24 21:23:08 +02:00
Uwe Steinmann
505bf27d52 include ClassNotificationService and ClassEmailNotify 2020-06-24 21:13:22 +02:00
Uwe Steinmann
d56812f66d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-19 08:09:30 +02:00
Uwe Steinmann
d9143ff271 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-16 12:14:03 +02:00
Uwe Steinmann
5bb78b6468 fix sorting by name in getInstanceBy(), init _dms to null 2020-06-16 08:29:33 +02:00
Uwe Steinmann
550f0ee1f1 fix typo in comments 2020-06-16 07:20:57 +02:00
Uwe Steinmann
bf1d8482d4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-09 21:36:48 +02:00
Uwe Steinmann
1c8452ecea docs in S_IN_REVISION are in list AppRev (had been removed after merge) 2020-06-06 16:15:32 +02:00
Uwe Steinmann
50fb928988 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-05 18:10:23 +02:00
Uwe Steinmann
98734e8ef9 add entry for 6.0.11 2020-06-05 17:50:26 +02:00
Uwe Steinmann
b974f4c4e9 filterAccess() propperly checks for documents 2020-06-05 17:45:31 +02:00
Uwe Steinmann
cc6fd60168 start new version 6.0.11 2020-06-05 17:45:17 +02:00
Uwe Steinmann
b2c606f37f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-28 11:54:09 +02:00
Uwe Steinmann
a446f45e43 Merge branch 'seeddms-5.1.x' 2020-05-28 11:37:04 +02:00
Uwe Steinmann
db3a372e94 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-28 11:25:22 +02:00
Uwe Steinmann
6f0b8806a1 include inc.ClassSchedulerTaskBase.php 2020-05-28 08:10:39 +02:00
Uwe Steinmann
b1c433e594 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-28 08:01:47 +02:00
Uwe Steinmann
3a913aaaa9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-28 07:38:09 +02:00
Uwe Steinmann
3a29edff89 some info on how to set up the cronjob 2020-05-27 22:13:47 +02:00
Uwe Steinmann
c59a112917 add entry for 6.0.10 (adding op.Cron.php) 2020-05-27 22:08:18 +02:00
Uwe Steinmann
579b561d9d add script to run scheduled tasks 2020-05-27 22:07:13 +02:00
Uwe Steinmann
f4a9182ead fix getting document id for image preview 2020-05-27 16:35:11 +02:00
Uwe Steinmann
4f014a51e4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-27 16:34:07 +02:00
Uwe Steinmann
6773f93e11 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-27 16:24:43 +02:00
Uwe Steinmann
376df1cb20 include new task for checking for expired documents 2020-05-27 15:12:03 +02:00
Uwe Steinmann
fc5ad6e5e5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-27 12:07:03 +02:00
Uwe Steinmann
d497eebc01 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-27 12:05:39 +02:00
Uwe Steinmann
88a3359a9e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-26 14:53:41 +02:00
Uwe Steinmann
90cf72367d put name and description in one column 2020-05-26 14:12:58 +02:00
Uwe Steinmann
e5477708ad ??? 2020-05-25 17:09:15 +02:00
Uwe Steinmann
3e45348b31 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-25 15:57:49 +02:00
Uwe Steinmann
c645bc3782 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-22 16:36:10 +02:00
Uwe Steinmann
f3b7a979ff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-22 16:30:44 +02:00
Uwe Steinmann
496020ca59 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-22 16:30:05 +02:00
Uwe Steinmann
16f8333e89 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-22 14:25:30 +02:00
Uwe Steinmann
2d97c204a8 determine SEEDDMS_HOME if not explicitly set 2020-05-20 20:54:34 +02:00
Uwe Steinmann
1b8e7883d1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-20 11:14:37 +02:00
Uwe Steinmann
fd668ce709 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-20 06:26:07 +02:00
Uwe Steinmann
2bd75c6d1f add mode 'dryrun', actually check if a task is due 2020-05-19 17:49:32 +02:00
Uwe Steinmann
98374b513d fix syntax error 2020-05-19 11:54:39 +02:00
Uwe Steinmann
c946126e53 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-19 11:05:22 +02:00
Uwe Steinmann
22d314b87a add entries of 6.0.10 and 6.0.9 2020-05-19 08:07:38 +02:00
Uwe Steinmann
c0f4ea859b add removal of task 2020-05-19 08:07:21 +02:00
Uwe Steinmann
df02d76e56 add removal of task 2020-05-19 08:06:42 +02:00
Uwe Steinmann
92bf2e1d69 add method remove(), add optional parameter to getParameter() 2020-05-19 08:06:09 +02:00
Uwe Steinmann
204387237f add changelog for 5.1.17 2020-05-19 06:15:13 +02:00
Uwe Steinmann
30ae0ffc30 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-18 18:44:54 +02:00
Uwe Steinmann
e4ac7a9275 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-18 18:31:46 +02:00
Uwe Steinmann
57830a60d1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-18 16:25:52 +02:00
Uwe Steinmann
537327e41d pass $user to execute() method of task 2020-05-18 16:24:19 +02:00
Uwe Steinmann
ff69d6e08e allow checkboxes for task parameters 2020-05-18 16:23:57 +02:00
Uwe Steinmann
317f10b5d1 fix saving parameters 2020-05-18 16:21:54 +02:00
Uwe Steinmann
cdf29f754d remove spaces in empty line 2020-05-18 16:21:24 +02:00
Uwe Steinmann
3776d2037d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-18 07:24:14 +02:00
Uwe Steinmann
d524c5f48c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-18 07:07:18 +02:00
Uwe Steinmann
7ed2660453 check if extension is enabled 2020-05-15 17:25:22 +02:00
Uwe Steinmann
2e31004982 pass updating user to callback onSetStatus, finish revision when document status changes form inrevision to released 2020-05-15 17:24:04 +02:00
Uwe Steinmann
6319318773 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-15 08:21:33 +02:00
Uwe Steinmann
06de96a552 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-15 08:17:12 +02:00
Uwe Steinmann
a31524df09 delRevisor() returns -4 if user has placed revision already 2020-05-15 08:05:46 +02:00
Uwe Steinmann
bf11f7cc87 clear revision date when all revisors have been deleted 2020-05-15 08:05:04 +02:00
Uwe Steinmann
d1e79d1afc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-14 14:46:56 +02:00
Uwe Steinmann
4a88ff342f include bootbox 2020-05-13 15:29:14 +02:00
Uwe Steinmann
a8af1a148b pass showtree to view 2020-05-13 15:25:43 +02:00
Uwe Steinmann
ae9be17b4d support onepage mode, update url after selecting a document list 2020-05-13 14:51:52 +02:00
Uwe Steinmann
521e3b3380 propperly include bootbox 2020-05-13 14:38:03 +02:00
Uwe Steinmann
1bf0529a68 add javascript translations 2020-05-13 14:33:26 +02:00
Uwe Steinmann
8884b1b54d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-13 13:53:37 +02:00
Uwe Steinmann
1ebe7332d1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-12 16:23:04 +02:00
Uwe Steinmann
84aa83d1d9 rework countDocuments()
check if user is actually set, 'WorkflowByMe' now uses a single sql
statement
2020-05-08 12:42:44 +02:00
Uwe Steinmann
8ae40fbc9e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-08 07:44:49 +02:00
Uwe Steinmann
6dddef6efa fix uploading files with fine uploader (Closes: #472) 2020-05-07 09:11:56 +02:00
Uwe Steinmann
000a8e7710 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-07 07:15:42 +02:00
Uwe Steinmann
48353cfa81 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-05-05 16:36:55 +02:00
Uwe Steinmann
dc661029af Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-23 21:47:30 +02:00
Uwe Steinmann
d1f47f9320 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-22 17:22:24 +02:00
Uwe Steinmann
1aefc633f9 fix adding new calendar event 2020-04-20 07:23:17 +02:00
Uwe Steinmann
20e3826316 add dummy note in 6.0.9 2020-04-17 14:09:56 +02:00
Uwe Steinmann
4d27f98c1b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-17 14:06:52 +02:00
Uwe Steinmann
00cd7fc700 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-16 17:21:10 +02:00
Uwe Steinmann
7485e0b57a fix notes 2020-04-14 18:04:08 +02:00
Uwe Steinmann
7cc6ed952e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-14 18:02:35 +02:00
Uwe Steinmann
16613a1e27 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-14 17:44:27 +02:00
Uwe Steinmann
6e89a180b1 fix upload from dropfolder 2020-04-14 17:13:32 +02:00
Uwe Steinmann
5d1d406cc1 take out empty opition for owner in fulltext search form 2020-04-02 08:46:00 +02:00
Uwe Steinmann
4538858561 new entry for 6.0.9 2020-04-02 08:25:50 +02:00
Uwe Steinmann
2e58a9324f fix arcordeon for folder parameters 2020-04-02 08:25:00 +02:00
Uwe Steinmann
ede1cf3fbc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-02 07:44:39 +02:00
Uwe Steinmann
9f0bc73372 add item for 6.0.9 2020-04-01 18:36:24 +02:00
Uwe Steinmann
48cc8d80e8 use SeedDMS_Core_Document::isType() to check for documents 2020-04-01 18:29:48 +02:00
Uwe Steinmann
c69490daba translate headers, use DateTime for Excel dates 2020-04-01 18:29:11 +02:00
Uwe Steinmann
0fac1646d4 set $docAccess before checking the workflow mode 2020-04-01 16:56:20 +02:00
Uwe Steinmann
9b30289b32 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-01 14:38:12 +02:00
Uwe Steinmann
97f5f73730 process of user can be deleted again, instead of transfered to another user 2020-03-27 08:16:12 +01:00
Uwe Steinmann
297bdcb3a0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-26 08:04:33 +01:00
Uwe Steinmann
26ff848f9c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-26 07:55:54 +01:00
Uwe Steinmann
509d23715a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-25 09:26:58 +01:00
Uwe Steinmann
7a8fffadfc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-25 09:19:54 +01:00
Uwe Steinmann
14123cd604 add entry for 6.0.9 2020-03-24 09:31:16 +01:00
Uwe Steinmann
48ee318921 fix setting and retrieving role of user 2020-03-24 09:30:26 +01:00
Uwe Steinmann
36b5fec504 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-24 08:29:00 +01:00
Uwe Steinmann
4ad398a01e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-23 06:47:48 +01:00
Uwe Steinmann
839607e1ca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-23 06:41:15 +01:00
Uwe Steinmann
feda33c2c8 add some more fold marks 2020-03-19 11:05:40 +01:00
Uwe Steinmann
bf9a409a71 add new method printVersionAttributes() 2020-03-19 10:13:12 +01:00
Uwe Steinmann
cce4be822c use parent::printAttribute() 2020-03-19 09:48:19 +01:00
Uwe Steinmann
9c3b34b41e move printAttribute() into parent class 2020-03-19 09:47:35 +01:00
Uwe Steinmann
2c53286943 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-18 18:17:33 +01:00
Uwe Steinmann
f21ce1f2ed add entries for 6.0.9, set cmdTimeout to 10 2020-03-13 12:22:12 +01:00
Uwe Steinmann
2324a67da4 make it work in 6.0.x 2020-03-13 12:21:44 +01:00
Uwe Steinmann
626d9d69c8 fix to be working in 6.0.x 2020-03-13 12:18:01 +01:00
Uwe Steinmann
c6cd1b6900 place delete button below selection menu 2020-03-13 09:20:12 +01:00
Uwe Steinmann
835ab33fcd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-13 08:22:45 +01:00
Uwe Steinmann
3b4cecabcc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-10 14:32:18 +01:00
Uwe Steinmann
30112e4b21 use __construct for constructors instead of class name 2020-03-10 09:43:04 +01:00
Uwe Steinmann
3d5f321713 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-05 08:05:38 +01:00
Uwe Steinmann
ef06f2909f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-04 20:39:11 +01:00
Uwe Steinmann
0ed11fcb36 fix bug #458 2020-03-04 18:27:24 +01:00
Uwe Steinmann
d928c43981 fix bug #465 2020-03-04 18:27:10 +01:00
Uwe Steinmann
6950f7777e fix bug #465 2020-03-04 18:23:11 +01:00
Uwe Steinmann
b5eddc2296 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-04 18:19:43 +01:00
Uwe Steinmann
45acd496d6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-04 17:58:01 +01:00
Uwe Steinmann
6139c781d0 Merge branch 'seeddms-5.1.x' 2020-03-02 12:03:38 +01:00
Uwe Steinmann
67e5eb5efe set notes for 5.1.15 2020-03-02 11:50:55 +01:00
Uwe Steinmann
a41e03425b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-02 11:50:03 +01:00
Uwe Steinmann
0e7b23ff4c fix error when getting version of document 2020-03-02 09:29:53 +01:00
Uwe Steinmann
756a86abe5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-03-02 09:26:41 +01:00
Uwe Steinmann
479214118e add entry for 6.0.8 2020-02-29 15:20:09 +01:00
Uwe Steinmann
13e27496e0 fix getting workflow log when triggering a transition 2020-02-29 15:19:11 +01:00
Uwe Steinmann
111d433c8a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-28 18:21:33 +01:00
Uwe Steinmann
23a456e730 fix various js errors
probably due to new cytoscape version
2020-02-28 18:12:53 +01:00
Uwe Steinmann
c8df1533e6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-28 11:18:09 +01:00
Uwe Steinmann
2eda020373 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-27 18:01:14 +01:00
Uwe Steinmann
9e5f005f05 do not check checkboxes by default 2020-02-27 17:45:54 +01:00
Uwe Steinmann
5f71f51644 add entries for 6.0.8 2020-02-26 21:14:35 +01:00
Uwe Steinmann
08c0507de2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-26 21:11:20 +01:00
Uwe Steinmann
9733c44ef3 do not access SeedDMD_Document_Content::_version anymore
use SeedDMD_Document_Content::getVersion() instead
2020-02-26 20:59:26 +01:00
Uwe Steinmann
7761f5d77b get root folder in printTreeNavigationJs() only if partialtree is not set 2020-02-26 20:58:54 +01:00
Uwe Steinmann
3d33c1d49c get rid of git merge errors 2020-02-26 20:57:40 +01:00
Uwe Steinmann
33c4f88636 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-25 17:14:36 +01:00
Uwe Steinmann
5f900b7ab1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-17 10:22:23 +01:00
Uwe Steinmann
0602fad397 Merge branch 'seeddms-5.1.x' 2020-02-17 10:21:29 +01:00
Uwe Steinmann
dc5d742c45 get docs with wrong file type in view, update page title when choosing list 2020-02-13 17:42:53 +01:00
Uwe Steinmann
1ad2976f0d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-13 16:14:37 +01:00
Uwe Steinmann
ac1c2a55e2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-13 13:25:59 +01:00
Uwe Steinmann
a6a7ede3f8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-13 12:39:08 +01:00
Uwe Steinmann
450bdc0b7f add check for wrong file type, fix repairing of checksum and filesize 2020-02-13 12:20:16 +01:00
Uwe Steinmann
9b24827598 add new method setFileType() 2020-02-13 12:19:43 +01:00
Uwe Steinmann
efec0c36bf add method getWrongFiletypeDocumentContent() 2020-02-13 12:19:16 +01:00
Uwe Steinmann
901fcaef5e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-13 08:24:25 +01:00
Uwe Steinmann
5ff1333c9f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-12 17:29:52 +01:00
Uwe Steinmann
a97114b77d fix update 2020-02-06 19:01:46 +01:00
Uwe Steinmann
7f5908bcf8 add missing ` around names 2020-02-06 19:01:25 +01:00
Uwe Steinmann
60b65aad13 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-06 18:40:45 +01:00
Uwe Steinmann
9672f19bc4 call new hook checkOutInfo 2020-02-06 17:01:26 +01:00
Uwe Steinmann
3e9d2dc695 get read access list for receipt workflow 2020-02-06 17:01:00 +01:00
Uwe Steinmann
01813f19f8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-06 12:03:14 +01:00
Uwe Steinmann
c3ef148ca6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-02-06 11:35:55 +01:00
Uwe Steinmann
58412c8179 use getDMS() instead of access varialbe _dms in folder or document 2020-01-24 08:53:04 +01:00
Uwe Steinmann
eba7f208d5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-24 08:49:21 +01:00
Uwe Steinmann
11a8a8087f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-21 17:32:24 +01:00
Uwe Steinmann
8362796339 fix sql statement for adding a new primary key 2020-01-20 11:26:44 +01:00
Uwe Steinmann
4d43097961 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-20 11:13:48 +01:00
Uwe Steinmann
0643a3dc87 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-14 13:21:44 +01:00
Uwe Steinmann
cfdd951369 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-13 09:45:05 +01:00
Uwe Steinmann
481d01977b fix typo 2020-01-06 13:34:38 +01:00
Uwe Steinmann
dee275397a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-06 12:54:31 +01:00
Uwe Steinmann
e7a50bfb91 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-01-01 09:25:19 +01:00
Uwe Steinmann
36231f8cf3 do not include GoogleQRCodeProvider.php anymore 2020-01-01 09:17:45 +01:00
Uwe Steinmann
6fc73a9a77 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-12-31 15:51:33 +01:00
Uwe Steinmann
7b1835774d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-12-15 08:03:36 +01:00
Uwe Steinmann
cbaa038c55 use formField() instead of plain html 2019-11-28 15:01:36 +01:00
Uwe Steinmann
dcc64bc539 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-28 14:27:52 +01:00
Uwe Steinmann
769b9e5beb add changes for 6.0.7 2019-11-28 14:07:19 +01:00
Uwe Steinmann
1593ca5f34 removeFromProcess() can transfer to new user for all processes 2019-11-28 13:48:50 +01:00
Uwe Steinmann
e14e14ddb4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-28 10:23:10 +01:00
Uwe Steinmann
df095c63a3 use getBaseUrl() 2019-11-28 10:06:48 +01:00
Uwe Steinmann
e9827b8701 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-28 10:05:12 +01:00
Uwe Steinmann
809f224e7d processes can be transfered to a new user
currently only for reviews
2019-11-28 09:18:42 +01:00
Uwe Steinmann
dabf821b6a do not run documentListRow(Start|End) if lastContent is null 2019-11-28 09:18:01 +01:00
Uwe Steinmann
babba864a1 fix error msg 2019-11-28 09:17:32 +01:00
Uwe Steinmann
3011f96372 add optional parameter $newuser to removeFromProcesses()
if set, the process will be transfered to a new user
2019-11-28 09:16:23 +01:00
Uwe Steinmann
2ec6534079 fix documentation for rewriteRevisionLog() 2019-11-28 09:15:26 +01:00
Uwe Steinmann
d82b59f173 add filter field, placeholder in input filter field 2019-11-26 17:49:27 +01:00
Uwe Steinmann
a75d337912 fix menu item for 2 factor auth 2019-11-26 17:48:54 +01:00
Uwe Steinmann
4dbec073cc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-26 17:08:10 +01:00
Uwe Steinmann
293e26c747 add access checks for summaries, add Revision summary 2019-11-25 20:48:11 +01:00
Uwe Steinmann
ac570b09e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-25 11:52:39 +01:00
Uwe Steinmann
e4b934ea76 add js code for one page mode 2019-11-25 11:51:08 +01:00
Uwe Steinmann
10f6606efa add RevisionSummary to list of lecacy access rights 2019-11-25 11:50:11 +01:00
Uwe Steinmann
dc770f3c17 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-25 09:53:22 +01:00
Uwe Steinmann
cbac16773d more checking for access rights 2019-11-25 09:36:32 +01:00
Uwe Steinmann
0d4c970029 replace check for guest by generic acl check 2019-11-25 09:35:59 +01:00
Uwe Steinmann
79aa6c079c replace check for guest by generic acl check 2019-11-25 09:35:05 +01:00
Uwe Steinmann
684f27ef87 fix output of group name 2019-11-25 09:34:12 +01:00
Uwe Steinmann
b3cc272941 check access 2019-11-25 09:33:13 +01:00
Uwe Steinmann
893a8d6d8d return json even in case of an error 2019-11-25 09:32:32 +01:00
Uwe Steinmann
7d9de047bd add legacy access rights for groups 2019-11-25 09:31:56 +01:00
Uwe Steinmann
83e42948ee Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-21 10:55:22 +01:00
Uwe Steinmann
04f9edbb39 make download button primary 2019-11-20 19:39:47 +01:00
Uwe Steinmann
51943050c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-20 19:23:48 +01:00
Uwe Steinmann
89d5c98818 set onepage for view 2019-11-20 18:15:10 +01:00
Uwe Steinmann
4b55bc4fd8 allow add to transmittals with only read access on document 2019-11-20 18:14:43 +01:00
Uwe Steinmann
85157a8bfe no access on some more scripts 2019-11-20 18:12:26 +01:00
Uwe Steinmann
3012fc52e5 include "inc/inc.ClassAccessOperation.php" 2019-11-20 15:09:40 +01:00
Uwe Steinmann
55727bd1a2 do not use $this->check_access() anymore 2019-11-20 13:47:57 +01:00
Uwe Steinmann
d2382f437c set 'onepage' for view 2019-11-20 13:37:52 +01:00
Uwe Steinmann
b123cd29ca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-20 13:17:18 +01:00
Uwe Steinmann
5d9b94de6b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-20 13:14:58 +01:00
Uwe Steinmann
ed32e8e2b2 call $accessobject->check_view_access() instead of $this->check_access() 2019-11-20 13:13:51 +01:00
Uwe Steinmann
1b6a07b73e more documentation 2019-11-20 13:13:28 +01:00
Uwe Steinmann
a493e7645d set accessobject already in factory 2019-11-20 13:13:07 +01:00
Uwe Steinmann
43f57637e7 add method check_view_lecacy_access()
which does the legacy access checking if advanded acl is turned off
2019-11-20 13:12:11 +01:00
Uwe Steinmann
270770782f verifyStatus() handles status change when S_EXPIRED is set 2019-11-20 13:11:24 +01:00
Uwe Steinmann
d9a4305fd7 remove second instance of SeedDMS_AccessOperation 2019-11-19 21:03:44 +01:00
Uwe Steinmann
d96b3b84a2 add scheduler to menu 2019-11-19 21:03:19 +01:00
Uwe Steinmann
e873ba999b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-19 18:45:43 +01:00
Uwe Steinmann
ac0824ae37 set access object 2019-11-19 16:07:27 +01:00
Uwe Steinmann
400755a0e0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-19 10:30:46 +01:00
Uwe Steinmann
4a06e54f89 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-19 10:05:18 +01:00
Uwe Steinmann
e20d4e492f output processes in old versions 2019-11-19 10:03:55 +01:00
Uwe Steinmann
1d521fd97e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-19 09:35:33 +01:00
Uwe Steinmann
096b117e34 create access object 2019-11-19 08:46:43 +01:00
Uwe Steinmann
6f06faabc0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-19 07:28:13 +01:00
Uwe Steinmann
b3e7b9a2dd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-11-08 08:03:30 +01:00
Uwe Steinmann
7362bf192b add method check_access()
just like in SeedDMS_View_Common
2019-11-08 08:03:02 +01:00
Uwe Steinmann
1c08d83704 need M_ALL to set revisor 2019-11-07 21:59:02 +01:00
Uwe Steinmann
572d776e55 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-28 12:08:43 +01:00
Uwe Steinmann
bd56ca76c3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-28 09:27:14 +01:00
Uwe Steinmann
a09a023d42 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-28 09:16:06 +01:00
Uwe Steinmann
65212329a7 fix invaled xml 2019-10-28 08:23:27 +01:00
Uwe Steinmann
511152be68 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-28 08:15:20 +01:00
Uwe Steinmann
ffcc53408f fix typo in enableRevisionOnVoteReject (must be 'One') 2019-10-18 07:24:58 +02:00
Uwe Steinmann
40ddfd3ea6 allow to set status S_NEEDS_CORRECTION 2019-10-18 07:24:33 +02:00
Uwe Steinmann
7e3f490b57 fix getting view parameter 'onevotereject' 2019-10-18 07:23:20 +02:00
Uwe Steinmann
95aede5c2b fix SeedDMS_Core_DocumentContent::verifyЅtatus()
the method can now handle revisions with status==-1. Status will not
change if status is already S_NEEDS_CORRECTION
2019-10-18 07:19:51 +02:00
Uwe Steinmann
065bf4eb26 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-17 07:41:17 +02:00
Uwe Steinmann
a870602324 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-10-17 07:22:16 +02:00
Uwe Steinmann
9bc5b73771 do not access SeedDMS_Core_DocumentContent::_version anymore 2019-09-10 17:15:27 +02:00
Uwe Steinmann
68e97f81ce add selection for partial tree 2019-09-10 17:15:11 +02:00
Uwe Steinmann
4b5c5ab00f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-09-06 14:56:14 +02:00
Uwe Steinmann
670597ea5f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-09-06 14:51:21 +02:00
Uwe Steinmann
88168d005e take over some changes from 5.1.x 2019-09-06 14:32:14 +02:00
Uwe Steinmann
37db957c41 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-07-19 15:41:05 +02:00
Uwe Steinmann
44bf03c557 Merge branch 'seeddms-5.1.x' 2019-07-19 15:29:20 +02:00
Uwe Steinmann
801f0f0ed2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-07-05 08:10:42 +02:00
Uwe Steinmann
768ff5acb1 update entry for 5.1.12 2019-07-01 21:36:22 +02:00
Uwe Steinmann
fa64bb3200 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-07-01 21:34:08 +02:00
Uwe Steinmann
4bcb5f8e4c Merge branch 'seeddms-5.1.x' 2019-06-20 08:27:24 +02:00
Uwe Steinmann
4fe696f18b Merge branch 'seeddms-5.1.x' 2019-06-14 08:53:26 +02:00
Uwe Steinmann
023c2c58f1 Merge branch 'seeddms-5.1.x' 2019-06-13 11:23:19 +02:00
Uwe Steinmann
5e8c34ad54 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-05-14 20:44:47 +02:00
Uwe Steinmann
7ceb0e9718 may not edit reception if rejecting a reception is turned off 2019-04-12 08:54:25 +02:00
Uwe Steinmann
4f4160c1a5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-04-12 08:33:04 +02:00
Uwe Steinmann
570dc9ca71 new items for 6.0.7 2019-04-09 11:20:00 +02:00
Uwe Steinmann
5c59a92624 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-04-09 10:54:42 +02:00
Uwe Steinmann
469370cb42 new config option enableReceiptReject
enables rejection of receipts
2019-04-09 10:51:51 +02:00
Uwe Steinmann
f5505e85b2 order documents in tree by name 2019-04-09 10:51:31 +02:00
Uwe Steinmann
e2c3cbe3cf do not show update user for revisions in status 0 2019-04-05 13:23:38 +02:00
Uwe Steinmann
1a002c9d18 Merge branch 'seeddms-5.1.x' 2019-04-04 19:18:44 +02:00
Uwe Steinmann
d0cf90032f a revision call also be started if some of the revisors have already reviewed the document 2019-04-04 14:02:46 +02:00
Uwe Steinmann
d8fb4fa4b0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-04-04 11:41:45 +02:00
Uwe Steinmann
d2c55cd685 fix translation string 2019-04-03 10:13:19 +02:00
Uwe Steinmann
cd4eb3d115 move code for getting version into method version() 2019-03-27 15:30:11 +01:00
Uwe Steinmann
f97af846e6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-03-18 07:37:17 +01:00
Uwe Steinmann
b953ead796 fix merge errors 2019-03-18 06:55:02 +01:00
Uwe Steinmann
d5109326f2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-03-18 06:53:11 +01:00
Uwe Steinmann
fd5bfe246f various minor corrections of sql statements
improves compatibility with postgres
2019-03-14 09:37:21 +01:00
Uwe Steinmann
a2fbb7cca0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-03-14 09:08:07 +01:00
Uwe Steinmann
83e8f900e5 fix setting role 2019-03-11 18:27:20 +01:00
Uwe Steinmann
00d6b7e150 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-03-11 18:27:09 +01:00
Uwe Steinmann
7860cdc769 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-27 15:40:34 +01:00
Uwe Steinmann
ce3bb7d8ca fix typo in variable name 2019-02-27 15:40:21 +01:00
Uwe Steinmann
add79b47d1 fix syntax error, run update of index even if update hook was called before 2019-02-27 11:56:33 +01:00
Uwe Steinmann
a3fcfcb6d9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-22 17:27:06 +01:00
Uwe Steinmann
d721ee374a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-22 07:56:05 +01:00
Uwe Steinmann
4eec4b6977 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-19 07:57:49 +01:00
Uwe Steinmann
695c7c7c44 pass initial document status to verifyStatus() 2019-02-14 12:47:03 +01:00
Uwe Steinmann
3ccc9f5176 add more notes for 6.0.7 2019-02-14 12:46:11 +01:00
Uwe Steinmann
6d5ce06c9f add_log_line() be used from command line scripts without errors 2019-02-14 12:45:39 +01:00
Uwe Steinmann
4b7e9d9c75 log run of execution 2019-02-14 12:35:57 +01:00
Uwe Steinmann
ee88020054 check frequency 2019-02-14 12:35:18 +01:00
Uwe Steinmann
08fac559c9 add new list type 'DueRevision' in getDocumentList 2019-02-14 12:33:50 +01:00
Uwe Steinmann
feee5600c4 add new list type ´DueRevision' in getDocumentList() 2019-02-14 12:33:11 +01:00
Uwe Steinmann
fa96dca929 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-13 06:50:36 +01:00
Uwe Steinmann
8c826a0c0d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-12 12:16:13 +01:00
Uwe Steinmann
b2fa733a0d new note for 6.0.7 2019-02-12 08:18:16 +01:00
Uwe Steinmann
770daa330c SeedDMS_Core_Document::getTimeline() returns revision only for latest content 2019-02-12 08:18:10 +01:00
Uwe Steinmann
963f2b9b78 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-11 22:00:31 +01:00
Uwe Steinmann
07d7bb0834 return true if operation was succesful 2019-02-11 19:20:07 +01:00
Uwe Steinmann
90f4c17533 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-11 15:45:24 +01:00
Uwe Steinmann
b27895e4ea Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-07 15:03:43 +01:00
Uwe Steinmann
d4ca66706d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-05 07:36:09 +01:00
Uwe Steinmann
d7515b3084 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-04 15:17:42 +01:00
Uwe Steinmann
6d09865bae call hook to filter docs in tree, add data-url to jqtree div 2019-02-04 14:51:52 +01:00
Uwe Steinmann
6880901b4a subtree command isn't deprecated 2019-02-04 14:51:19 +01:00
Uwe Steinmann
6776f0c93d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-04 14:45:12 +01:00
Uwe Steinmann
7adefd2d8d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-04 14:30:07 +01:00
Uwe Steinmann
6e5634cf62 path current class to jqtree 2019-02-04 11:19:04 +01:00
Uwe Steinmann
621dc6fd98 fix filtering approval tasks 2019-02-04 11:18:44 +01:00
Uwe Steinmann
cad94cd18b call hook to filter documents in folder tree
can be used to show only certain documents, e.g. those which are
released
2019-02-04 08:46:03 +01:00
Uwe Steinmann
64e517a02e change name of form from 'form1' to 'adddocform'
needed for hooks, to tell which form is currently shown
2019-02-04 08:44:13 +01:00
Uwe Steinmann
1db49ff214 add counter for needscorrection 2019-02-04 08:42:49 +01:00
Uwe Steinmann
22a4160a58 add comment that 'subtree' is deprecated 2019-02-04 08:42:06 +01:00
Uwe Steinmann
4b76b5e6ae Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-02-01 09:30:32 +01:00
Uwe Steinmann
8fcfadf5a8 fix typo in key for translation 2019-02-01 09:01:18 +01:00
Uwe Steinmann
9e1dff071a admis are allowed to change approver/reviewer after first approval/review 2019-02-01 09:00:16 +01:00
Uwe Steinmann
4b1e933c76 add new config option $_allowChangeRevAppInProcess 2019-02-01 08:59:43 +01:00
Uwe Steinmann
fc688441ad recipients can be set, even if document was not released 2019-01-31 15:06:45 +01:00
Uwe Steinmann
0a256bde29 fix typo in translation key 2019-01-31 15:06:22 +01:00
Uwe Steinmann
d5ae314dec fix document chooser, which did not open anymore 2019-01-26 15:06:04 +01:00
Uwe Steinmann
d79b41c925 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-16 19:21:38 +01:00
Uwe Steinmann
f4a638ce14 new version 6.0.7 2019-01-16 17:57:13 +01:00
Uwe Steinmann
d33564ce88 fix opened and closed icon of tree 2019-01-15 18:24:11 +01:00
Uwe Steinmann
e79cba72a8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-15 18:21:54 +01:00
Uwe Steinmann
56ecf9d99e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-15 18:19:39 +01:00
Uwe Steinmann
37c7eed2bb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-15 18:16:46 +01:00
Uwe Steinmann
2709231dfc add dummy notes 2019-01-15 18:15:45 +01:00
Uwe Steinmann
3e12261637 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-15 13:59:24 +01:00
Uwe Steinmann
770d9223af fix syntax error after merge 2019-01-15 11:54:06 +01:00
Uwe Steinmann
48cf4b2ff3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2019-01-15 09:13:23 +01:00
Uwe Steinmann
e252af2df4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-12-18 06:19:18 +01:00
Uwe Steinmann
23bec2fe96 field parentworkflow in tblWorkflowDocumentContent is obsolete 2018-11-16 20:18:52 +01:00
Uwe Steinmann
0f39ccc7c3 fix merge errors 2018-11-16 20:18:27 +01:00
Uwe Steinmann
046d07bbf1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-11-16 19:17:19 +01:00
Uwe Steinmann
70b45bcd24 new field in tblWorkflowDocumentContent must be a primary key 2018-11-16 15:49:32 +01:00
Uwe Steinmann
39a7c26977 place tblWorkflowLog after tblWorkflowDocumentContent 2018-11-16 15:41:26 +01:00
Uwe Steinmann
4e0a34966c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-11-13 08:59:02 +01:00
Uwe Steinmann
3321b097e6 Merge branch 'seeddms-5.1.x' 2018-11-13 08:55:38 +01:00
Uwe Steinmann
a4ddbd6605 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-11-12 13:33:56 +01:00
Uwe Steinmann
93b8ee1750 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-08-08 07:28:22 +02:00
Uwe Steinmann
6553f7a379 call hook showVersionComment() for previous versions, check if comment is set at all 2018-07-13 12:27:30 +02:00
Uwe Steinmann
7ec84597eb update 2018-07-13 11:09:08 +02:00
Uwe Steinmann
4081173442 place in two columns and color table rows 2018-07-13 11:07:05 +02:00
Uwe Steinmann
3958714bff Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-07-13 11:01:36 +02:00
Uwe Steinmann
620dfa6a29 make executable 2018-07-12 20:50:26 +02:00
Uwe Steinmann
31e1e48dea list frequency and all parameters of task 2018-07-12 13:56:22 +02:00
Uwe Steinmann
aa7daffe46 fix translation for button 2018-07-12 13:56:00 +02:00
Uwe Steinmann
ded0c29b24 add documentation, get parameter in execute() 2018-07-12 13:55:36 +02:00
Uwe Steinmann
5df058415d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-07-11 20:41:22 +02:00
Uwe Steinmann
dc2cadc6d8 Merge branch 'seeddms-5.1.x' 2018-07-03 11:42:39 +02:00
Uwe Steinmann
ec80f5aa0e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-07-03 10:54:26 +02:00
Uwe Steinmann
9902445ff1 copy inc/inc.ClassExtensionMgr.php into repository dist 2018-05-23 20:34:37 +02:00
Uwe Steinmann
c9cf0139ee Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-23 15:59:55 +02:00
Uwe Steinmann
5c2e3edee7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-19 13:54:04 +02:00
Uwe Steinmann
dc35f2d9dd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-17 21:04:06 +02:00
Uwe Steinmann
af004146e9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-17 21:02:49 +02:00
Uwe Steinmann
0398229bca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-13 19:15:20 +02:00
Uwe Steinmann
0ce5143532 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-12 17:20:18 +02:00
Uwe Steinmann
18bd1fdf55 sync with package file from 5.1.7 2018-04-12 16:02:40 +02:00
Uwe Steinmann
0199019ee6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-12 15:57:21 +02:00
Uwe Steinmann
d8daa1dd3d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-11 17:36:43 +02:00
Uwe Steinmann
3bc9e9c5ce Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-11 15:32:47 +02:00
Uwe Steinmann
0d3596d237 better error reporting when indexing fails 2018-04-11 15:31:35 +02:00
Uwe Steinmann
5064c24388 show noty message longer in case of an error 2018-04-11 10:20:27 +02:00
Uwe Steinmann
e592d0e3d0 remove list of documents 2018-04-11 09:44:45 +02:00
Uwe Steinmann
2cc48d491e fix output of review/approval log if updating user doesn't exist anymore 2018-04-11 08:39:01 +02:00
Uwe Steinmann
295a6d0fe7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-06 16:38:09 +02:00
Uwe Steinmann
9ea9289fdf fix editing of document attachments 2018-04-06 09:32:16 +02:00
Uwe Steinmann
ba98736dfb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-06 09:29:09 +02:00
Uwe Steinmann
00dd7ee2df Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-06 08:33:26 +02:00
Uwe Steinmann
2e647fb4ec fix update of tblWorkflowLog
foreign key must be removed before droping field
2018-04-06 08:13:06 +02:00
Uwe Steinmann
801bda3560 fix typo 2018-04-06 06:40:29 +02:00
Uwe Steinmann
659a62e133 Merge branch 'seeddms-6.0.x-workflow' into seeddms-6.0.x 2018-04-06 06:39:29 +02:00
Uwe Steinmann
0cdba79f59 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-05 17:30:41 +02:00
Uwe Steinmann
f1fb23c7e7 fix sql statement to retrieve workflow log 2018-04-05 12:21:09 +02:00
Uwe Steinmann
8ea8c0086e set references to right table name
a reference to a temp. table will not be changed when the table name
is changed. Hence, use the right table name from the beginning and
make sure foreign keys are not checked
2018-04-05 12:04:37 +02:00
Uwe Steinmann
63a1ae0c13 add sql statements for workflow 2018-04-05 12:04:37 +02:00
Uwe Steinmann
7c9f5d3819 some infos about the update 2018-04-05 12:04:37 +02:00
Uwe Steinmann
e5376d144d add changelog for 6.0.6 2018-04-05 12:04:37 +02:00
Uwe Steinmann
90762b9e13 drop tables after commit 2018-04-05 12:04:37 +02:00
Uwe Steinmann
54ce5a7e16 adding sql statements for updating to new workflow layout 2018-04-05 12:04:37 +02:00
Uwe Steinmann
5882fc10a9 major change of workflow/document management 2018-04-05 12:04:37 +02:00
Uwe Steinmann
3379a2510c take out reconnect code
not needed anymore
2018-04-05 12:04:07 +02:00
Uwe Steinmann
9ba070da7c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-05 12:02:20 +02:00
Uwe Steinmann
d47f4c5ca9 reopen database after COMMIT 2018-04-05 11:24:23 +02:00
Uwe Steinmann
276245a395 do not show table of scheduler classes if none exists 2018-04-05 08:54:55 +02:00
Uwe Steinmann
718ac96777 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-05 08:24:30 +02:00
Uwe Steinmann
a54f6f416b minor fixes in translation phrases 2018-04-05 08:16:28 +02:00
Uwe Steinmann
1ba06eeb27 new icon for timeline 2018-04-05 07:48:22 +02:00
Uwe Steinmann
21b703725b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-05 07:44:41 +02:00
Uwe Steinmann
f9a00de8ee add SchedulerTaskMgr to list 2018-04-05 07:39:27 +02:00
Uwe Steinmann
c9d0ac3e73 better error handling for extension list from repository 2018-04-05 07:27:30 +02:00
Uwe Steinmann
867a5b8d7c add entries for 6.0.6 2018-04-04 21:49:48 +02:00
Uwe Steinmann
ed48285da5 pass extension config to init() of extension 2018-04-04 21:48:25 +02:00
Uwe Steinmann
2b62fbcc1b set styles for div.popupbox dt and div.popupbox dd 2018-04-04 21:47:56 +02:00
Uwe Steinmann
86e7b0a13f add hook showVersionComment 2018-04-04 21:47:40 +02:00
Uwe Steinmann
6fb4b9b545 switch list AppRevOwner and DraftOwner 2018-04-04 21:47:14 +02:00
Uwe Steinmann
7dc6cba8f2 make printPopupBox() public 2018-04-04 21:46:45 +02:00
Uwe Steinmann
e610d4d855 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-04 17:48:14 +02:00
Uwe Steinmann
eadce9145d do now allow to set disabled users as owner 2018-04-04 17:46:44 +02:00
Uwe Steinmann
9711cee70a add example for scheduler 2018-04-04 15:31:57 +02:00
Uwe Steinmann
9ae591bae7 add scheduler 2018-04-04 15:31:43 +02:00
Uwe Steinmann
52f58727ca add sql statements for scheduler 2018-04-04 15:29:32 +02:00
Uwe Steinmann
8d0e7e2b42 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-03 14:34:16 +02:00
Uwe Steinmann
57dc5fa31a do not set the uploader of a document to the owner
use the currently logged in user instead
2018-04-03 11:27:12 +02:00
Uwe Steinmann
8ecc721f3c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-03 11:00:08 +02:00
Uwe Steinmann
fd5920fc8d take enable[Revision|Receipt]Workflow into account 2018-04-03 09:32:36 +02:00
Uwe Steinmann
28e65a1520 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-03 06:17:42 +02:00
Uwe Steinmann
ab3fc8ec7c do not pass status to revision entry 2018-04-02 19:47:52 +02:00
Uwe Steinmann
20a798d9f1 add some mor documentation 2018-03-31 14:40:05 +02:00
Uwe Steinmann
c2ecc4adbb check_controller_access() returns true if !guest and adv access controll is off 2018-03-31 14:28:57 +02:00
Uwe Steinmann
666ced5fea usage of sendfile can be configured 2018-03-29 17:15:17 +02:00
Uwe Steinmann
28c2323744 add workflow to list of tasks in menu 2018-03-29 16:45:39 +02:00
Uwe Steinmann
c0c9f755a8 countTasks takes workflow mode and tasksinmenu into account 2018-03-29 16:30:46 +02:00
Uwe Steinmann
2259acc3f2 add counting documents in workflow and need correction in countTasks() 2018-03-29 16:30:02 +02:00
Uwe Steinmann
05626a4759 use GET instead of POST 2018-03-29 15:39:39 +02:00
Uwe Steinmann
d1ee800423 remove formtoken from link to javascript files 2018-03-29 15:39:10 +02:00
Uwe Steinmann
8447c87ab0 remove empty script tag 2018-03-29 15:16:39 +02:00
Uwe Steinmann
d7e22068af add item for 6.0.6 2018-03-29 15:12:52 +02:00
Uwe Steinmann
3976657a66 remove unneeded code, check if reception of document is allowed 2018-03-29 15:10:18 +02:00
Uwe Steinmann
bf1473fbb1 fix various errors when intializing the view 2018-03-28 17:06:49 +02:00
Uwe Steinmann
9f211d1fda init $positions early 2018-03-28 17:06:25 +02:00
Uwe Steinmann
3e2931068e allow CSP worker-src blob: 2018-03-28 17:06:10 +02:00
Uwe Steinmann
820b88c9cf revision and receipt is also availabe in advanced workflow mode 2018-03-27 18:23:00 +02:00
Uwe Steinmann
c0215ffef3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-27 18:07:08 +02:00
Uwe Steinmann
f6a506ff92 new method getRepositoryUrl() 2018-03-27 14:05:22 +02:00
Uwe Steinmann
7be573cac9 format error message 2018-03-27 14:05:04 +02:00
Uwe Steinmann
ad5c4fc332 check if repository url is set 2018-03-27 14:04:45 +02:00
Uwe Steinmann
1a8a0c3621 add item for 6.0.6 2018-03-27 13:46:03 +02:00
Uwe Steinmann
ab3475f512 do not set user for controller, because it is not set at that time 2018-03-27 13:44:48 +02:00
Uwe Steinmann
aa416f90ec do not enforce 2facto auth for guest and when secret is set 2018-03-27 13:43:56 +02:00
Uwe Steinmann
5506c0ed69 add entry for 6.0.6 2018-03-26 13:22:39 +02:00
Uwe Steinmann
4a76a144ee Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-26 13:21:48 +02:00
Uwe Steinmann
d40dc681dc add list of documents which need correction in menu 2018-03-26 13:09:36 +02:00
Uwe Steinmann
3514b0db89 check if $_POST["tasksInMenu"] is set 2018-03-26 13:09:13 +02:00
Uwe Steinmann
0c0472ae3c minor adoption because directory ext has to stay in www directory 2018-03-26 12:46:50 +02:00
Uwe Steinmann
c739d37bf5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-26 10:19:54 +02:00
Uwe Steinmann
c3e5909411 add item for 6.0.6 2018-03-26 10:16:07 +02:00
Uwe Steinmann
c4113c1abb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-26 10:14:55 +02:00
Uwe Steinmann
90bf0f13f4 show counter for tasks only for selected tasks in configuration 2018-03-26 10:04:05 +02:00
Uwe Steinmann
db66dff191 reorder lists of documents 2018-03-26 10:02:58 +02:00
Uwe Steinmann
fb9d04a3a9 pass _tasksInMenu to view 2018-03-26 10:00:53 +02:00
Uwe Steinmann
939cbd7a56 make counted task in menu selectable 2018-03-26 10:00:20 +02:00
Uwe Steinmann
8d7e6715fa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-23 19:30:59 +01:00
Uwe Steinmann
40ec1447d5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-23 10:16:44 +01:00
Uwe Steinmann
095e471f8b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-21 15:30:32 +01:00
Uwe Steinmann
08e3a5aca3 check if group recipient is already in list of ind. recipients, check for reviewer only 2018-03-20 12:16:51 +01:00
Uwe Steinmann
77c5645ccc check if group recipient is already in list of ind. recipients 2018-03-20 12:16:01 +01:00
Uwe Steinmann
90affe7db1 pass $dms and $user to Controller::factory() 2018-03-20 11:16:13 +01:00
Uwe Steinmann
49af6ab171 make sure list of converters is an array, start new version 1.2.9 2018-03-20 11:08:08 +01:00
Uwe Steinmann
26d3c7a504 do not set status for scheduled_revision in timeline data 2018-03-20 11:06:38 +01:00
Uwe Steinmann
20d1a2695b check if _converters['pdf'] is set, before passing to view 2018-03-20 11:06:11 +01:00
Uwe Steinmann
6211014896 new version 6.0.6 2018-03-20 10:09:23 +01:00
Uwe Steinmann
f6ba941e68 do not show groups as reviewer/approver without members 2018-03-20 07:25:22 +01:00
Uwe Steinmann
dffdc46568 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-20 07:22:23 +01:00
Uwe Steinmann
0c0669fbbd do not release a document in verifyStatus() if in draft status 2018-03-14 17:05:27 +01:00
Uwe Steinmann
66f478b36a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-13 18:01:42 +01:00
Uwe Steinmann
edffd85f94 add entry for 6.0.6 2018-03-13 17:54:13 +01:00
Uwe Steinmann
9b2eecca0e rejecting a revision will neccesarily put document in need correction status 2018-03-13 17:51:44 +01:00
Uwe Steinmann
31d3d491b5 add changelog entry for 6.0.6 2018-03-09 13:39:08 +01:00
Uwe Steinmann
953e94cd8e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-09 13:11:11 +01:00
Uwe Steinmann
9605989054 start version 6.0.6 2018-03-07 20:08:04 +01:00
Uwe Steinmann
dda5ec7d13 fix comment 2018-03-07 17:26:11 +01:00
Uwe Steinmann
841cd2cfaf fix setting attributes
used the wrong field name
2018-03-07 17:16:02 +01:00
Uwe Steinmann
b553263f11 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-03-02 06:22:02 +01:00
Uwe Steinmann
7fe44b6644 add newline to last line 2018-03-01 21:30:30 +01:00
Uwe Steinmann
d78b165322 add item for 6.0.5 2018-03-01 21:30:14 +01:00
Uwe Steinmann
7008b11f64 add list for documents that need correction 2018-03-01 21:29:53 +01:00
Uwe Steinmann
0066d29650 add listNeedsCorrection 2018-03-01 21:29:12 +01:00
Uwe Steinmann
eda033babe start changelog for 6.0.5 2018-02-27 18:16:42 +01:00
Uwe Steinmann
40dda18f5a propperly pass enabelSelfReceipt to view 2018-02-27 18:16:22 +01:00
Uwe Steinmann
1ea5575fa8 fix output of extra actions for previous versions 2018-02-27 18:12:59 +01:00
Uwe Steinmann
2a234307a3 fix setting of expiration date 2018-02-27 18:11:32 +01:00
Uwe Steinmann
0bb1035261 sync with UpdateDocument
use same way to select expiration date, call hook
editDocumentContenAttributes, fix checking form
2018-02-27 16:12:36 +01:00
Uwe Steinmann
9ff60e8a35 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-27 14:41:47 +01:00
Uwe Steinmann
66aa7edbf5 filter out reviewer and uploader from recipients 2018-02-27 14:40:19 +01:00
Uwe Steinmann
e3664780e9 started new version 6.0.5 2018-02-27 07:42:11 +01:00
Uwe Steinmann
a87d493cb3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-27 07:40:01 +01:00
Uwe Steinmann
836bff3ea0 add item for 6.0.4 2018-02-23 17:20:47 +01:00
Uwe Steinmann
8528cd12ef fix filtering of uploader and reviewers 2018-02-23 17:19:49 +01:00
Uwe Steinmann
e913be8add Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-23 17:00:34 +01:00
Uwe Steinmann
a575714218 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-23 09:06:03 +01:00
Uwe Steinmann
656c4b0b7f optimize query for searching documents 2018-02-21 15:28:27 +01:00
Uwe Steinmann
a6d16911e8 fix xml error 2018-02-21 12:40:45 +01:00
Uwe Steinmann
6548776cb3 new version 6.0.4 2018-02-21 12:39:51 +01:00
Uwe Steinmann
cb287741d0 add and use SeedDMS_Core_DocumentContent::getInstance() 2018-02-21 12:34:51 +01:00
Uwe Steinmann
414532db25 hook extraVersionItem() may return an array or a string 2018-02-20 17:30:29 +01:00
Uwe Steinmann
87519d6d08 do not add uploader and reviewer as recipient 2018-02-20 17:29:49 +01:00
Uwe Steinmann
af066bb15b take out reviewers and uploaders from recipients 2018-02-20 17:29:16 +01:00
Uwe Steinmann
5e478d749d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-20 07:14:50 +01:00
Uwe Steinmann
981bcaf7d7 override status may be called on 'needs correction' status 2018-02-20 06:15:15 +01:00
Uwe Steinmann
1640682a10 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-14 22:00:34 +01:00
Uwe Steinmann
03b3bfa4e4 use upper case for sql keywords 2018-02-14 21:50:59 +01:00
Uwe Steinmann
ffbc685752 add missing indexes 2018-02-14 21:49:37 +01:00
Uwe Steinmann
91b163a825 fix typo in index name 2018-02-14 10:45:31 +01:00
Uwe Steinmann
aa4804cf56 add missing keys 2018-02-14 10:45:14 +01:00
Uwe Steinmann
795ca98b8f create temp table ttreceiptid before using it 2018-02-13 18:32:01 +01:00
Uwe Steinmann
6ad630edf4 turn of views as default 2018-02-13 17:07:45 +01:00
Uwe Steinmann
52ceaaf98e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-08 14:31:43 +01:00
Uwe Steinmann
5d51f18c5b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-08 14:26:36 +01:00
Uwe Steinmann
663cbab2c6 add item for 6.0.4 2018-02-08 07:24:07 +01:00
Uwe Steinmann
57839377f8 remove duplicate code 2018-02-07 22:36:26 +01:00
Uwe Steinmann
ab7776bdb9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-07 22:32:18 +01:00
Uwe Steinmann
7e0b1b6907 start new version 6.0.4 2018-02-05 15:19:59 +01:00
Uwe Steinmann
7bc2c0813d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-05 15:18:33 +01:00
Uwe Steinmann
a1a8abceea add entry for 6.0.3 2018-02-05 15:17:39 +01:00
Uwe Steinmann
dacacde524 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-05 15:14:45 +01:00
Uwe Steinmann
233cf9b1f1 fix error in listing approvers 2018-02-05 14:10:18 +01:00
Uwe Steinmann
ceb7d65913 add additional view access checks
DocumentAccess, UsrView, GroupView, ReviewSummary, ApprovalSummary, WorkflowSummary, ReceiptSummary
2018-02-05 10:31:07 +01:00
Uwe Steinmann
2641478216 move around code to create view and access object 2018-02-05 10:29:53 +01:00
Uwe Steinmann
2c3dff2a24 add check view access 2018-02-05 10:28:32 +01:00
Uwe Steinmann
28a0860824 check view access 2018-02-05 10:28:06 +01:00
Uwe Steinmann
51f3416c70 include LogInit, move incluѕion of Preview.php into view 2018-02-05 08:57:05 +01:00
Uwe Steinmann
2ad6a04965 move some code at beginning of file 2018-02-05 08:50:39 +01:00
Uwe Steinmann
16e70a0cdd recipients may be set with read/write access 2018-02-05 08:50:15 +01:00
Uwe Steinmann
d824ca30fb may[Receipt|Review|Approve|Revise] also checks for document access 2018-02-05 08:48:53 +01:00
Uwe Steinmann
c7dbe7d16f not needed anymore 2018-02-01 18:00:05 +01:00
Uwe Steinmann
8c4dc337c5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-01 14:56:42 +01:00
Uwe Steinmann
d89cfc3f1a fix access check 2018-02-01 14:38:57 +01:00
Uwe Steinmann
b3c372e270 show only released documents in ReceiveOwner list 2018-02-01 12:05:48 +01:00
Uwe Steinmann
b1ac7d94ac Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-02-01 08:32:53 +01:00
Uwe Steinmann
13119773bf update release date and notes for 6.0.3 2018-02-01 08:29:27 +01:00
Uwe Steinmann
3ad9fe9743 do not add uploader and reviewer to recipients when added by group 2018-02-01 08:28:56 +01:00
Uwe Steinmann
e7bec65b89 document status may be overriden if document is rejected 2018-02-01 08:28:24 +01:00
Uwe Steinmann
03e227af4c add all remaining changes in 6.0.3 2018-02-01 08:28:00 +01:00
Uwe Steinmann
4268e1874a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-31 21:20:47 +01:00
Uwe Steinmann
17478a52ef add note for 6.0.4 2018-01-31 20:05:34 +01:00
Uwe Steinmann
de689727b0 remove ';' in string 2018-01-31 20:04:42 +01:00
Uwe Steinmann
18191000ea add indexes on Log tables 2018-01-31 20:04:14 +01:00
Uwe Steinmann
39b94d4c75 add fast sql statement to getReceiptStatus() if limit=1 2018-01-31 20:03:22 +01:00
Uwe Steinmann
f3e1c56d5d add S_NEED_CORRECTION as doc status 2018-01-30 19:21:57 +01:00
Uwe Steinmann
e47ff72ec3 allow to select doc status S_NEED_CORRECTION 2018-01-30 19:21:21 +01:00
Uwe Steinmann
9d7b735ff4 use same form ind and grp revision 2018-01-30 19:20:51 +01:00
Uwe Steinmann
d84d4cfcdb allow to override with S_NEED_CORRECTION 2018-01-30 19:20:19 +01:00
Uwe Steinmann
0cc14e937d set doc status S_NEED_CORRECTION when revision status -1 is set 2018-01-30 19:19:40 +01:00
Uwe Steinmann
7f1f551334 allow to filter by status S_NEED_CORRECTION 2018-01-30 19:19:07 +01:00
Uwe Steinmann
bf2ced4c6e status -1 for revision is text status_need_correction 2018-01-30 19:18:35 +01:00
Uwe Steinmann
231af615af status may be S_NEED_CORRECTiON in setStatus() 2018-01-30 19:17:44 +01:00
Uwe Steinmann
4fa0efa07d use one form for ind and grp recipients 2018-01-30 19:16:34 +01:00
Uwe Steinmann
83e960fe03 check if file is actually accessible 2018-01-30 19:16:05 +01:00
Uwe Steinmann
7eb76b4c99 fix syntax error introduced by merging 2018-01-30 08:08:21 +01:00
Uwe Steinmann
89ad08a537 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-30 08:05:00 +01:00
Uwe Steinmann
408c60bc15 minor corrections of form 2018-01-30 07:20:23 +01:00
Uwe Steinmann
dc198e383b fix typo3 in translation key 2018-01-30 06:39:38 +01:00
Uwe Steinmann
593ba16c2d status may also be 6 (needs correction) 2018-01-29 11:41:40 +01:00
Uwe Steinmann
da82cbe8da status can also be set to 6 (needs correction) 2018-01-29 11:41:00 +01:00
Uwe Steinmann
8931759f84 new status S_NEEDS_CORRECTION 2018-01-29 11:40:25 +01:00
Uwe Steinmann
093a1fa844 get text for new staus S_NEEDS_KORRECTION 2018-01-29 11:39:53 +01:00
Uwe Steinmann
a8fad905a0 add note for 6.0.3 2018-01-28 07:54:36 +01:00
Uwe Steinmann
c768a9150b add lists of draft and obsolete documents 2018-01-28 07:50:38 +01:00
Uwe Steinmann
d2a0c08633 allow to set revisors and recipients with M_READWRITE access
previously M_ALL was needed
2018-01-28 07:49:46 +01:00
Uwe Steinmann
85a3041b9b add lists of drafts and obsolete docs in getDocumentList() 2018-01-28 07:48:29 +01:00
Uwe Steinmann
cbf7f1a161 list of documents without receivers on lists released documents 2018-01-24 09:01:35 +01:00
Uwe Steinmann
4dfade96f7 check if $files are given to filterFiles() 2018-01-23 20:50:44 +01:00
Uwe Steinmann
b9622ad165 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-23 20:21:39 +01:00
Uwe Steinmann
e35b732d80 add items for 6.0.4 2018-01-23 16:47:04 +01:00
Uwe Steinmann
cde0f066ad slice entries before view 2018-01-23 16:46:10 +01:00
Uwe Steinmann
81b8d2ae1b export always returns all items, fix display of 2nd, 3rd, ... page 2018-01-23 16:42:25 +01:00
Uwe Steinmann
5b5e9af891 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-23 10:45:30 +01:00
Uwe Steinmann
b8632046b7 fix some phrases 2018-01-21 13:58:49 +01:00
Uwe Steinmann
7e0cae0590 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-18 17:38:38 +01:00
Uwe Steinmann
3dda280ef8 add scheduled revision to skip list 2018-01-18 17:32:38 +01:00
Uwe Steinmann
3502ce5de7 show scheduled revisions in timeline 2018-01-18 17:29:10 +01:00
Uwe Steinmann
b3c000de45 use sendfile() instead of readfile() 2018-01-18 17:28:30 +01:00
Uwe Steinmann
4b8fad4605 set propper date in timeline for scheduled revisions 2018-01-18 17:27:31 +01:00
Uwe Steinmann
b803c1d448 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-18 10:53:58 +01:00
Uwe Steinmann
e97c3a4b25 allow to set receiver when uploading a document 2018-01-16 18:15:05 +01:00
Uwe Steinmann
d547fdd05b add changes for 6.0.3 2018-01-16 18:14:51 +01:00
Uwe Steinmann
c3e413c476 move many access checks from view into controller
issue message on receive tab if document isn't released yet, but there
are already receivers
2018-01-16 18:13:41 +01:00
Uwe Steinmann
48141e1116 out list of documents without a receiver 2018-01-16 18:12:47 +01:00
Uwe Steinmann
fd770b5264 check access 2018-01-16 18:11:50 +01:00
Uwe Steinmann
065fa49cc4 mayReceive() requires a released document 2018-01-16 18:07:20 +01:00
Uwe Steinmann
2b5f9ab3b3 add callback to SeedDMS_Core_Document::getAccessMode() 2018-01-16 18:06:19 +01:00
Uwe Steinmann
03690b9f1e add notes for 6.0.3 2018-01-16 18:05:54 +01:00
Uwe Steinmann
903a491016 getDocumentList() returns list of documents without a receiver 2018-01-16 18:04:53 +01:00
Uwe Steinmann
544e151135 getStatistics() returns propper values for each single value in a valueset 2018-01-16 18:03:05 +01:00
Uwe Steinmann
b51b3bb9f3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-09 15:37:40 +01:00
Uwe Steinmann
eed90367da add note for 6.0.3 2018-01-09 15:30:47 +01:00
Uwe Steinmann
0b8c6692ae add hook for modifying action menu of selected user 2018-01-09 15:30:21 +01:00
Uwe Steinmann
62f5dd1a9f pass 0 as default to getObjects() 2018-01-09 15:29:31 +01:00
Uwe Steinmann
6e75dd9c44 reviewers/approvers may be set in draft status 2018-01-08 14:38:03 +01:00
Uwe Steinmann
3244f20dcc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-03 09:41:03 +01:00
Uwe Steinmann
9d575d6371 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-03 09:23:39 +01:00
Uwe Steinmann
20e9157d01 Merge branch 'seeddms-5.1.x' 2018-01-03 09:23:05 +01:00
Uwe Steinmann
d5b4553c90 add methods for deleting users and to get a single category 2018-01-03 08:07:42 +01:00
Uwe Steinmann
3c4be73678 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-01-01 09:17:24 +01:00
Uwe Steinmann
3cd766468d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-21 15:27:33 +01:00
Sebastian Bartus-Kunz
02e7066749 Fixed wrong return object in getDocumentLink() 2017-12-20 15:40:20 +01:00
Uwe Steinmann
52fbb45df4 fix html error 2017-12-19 11:51:03 +01:00
Uwe Steinmann
367039f8b1 set timeout to 10sec and timer to 60sec 2017-12-19 11:50:38 +01:00
Uwe Steinmann
ad336cdd9f fix html error 2017-12-19 11:39:18 +01:00
Uwe Steinmann
70ea4c2314 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-19 11:33:00 +01:00
Uwe Steinmann
2f7a91d785 add entry for 6.0.2 2017-12-19 08:27:52 +01:00
Uwe Steinmann
d1a6651fa5 check if flag 'allday' is set 2017-12-19 08:27:10 +01:00
Uwe Steinmann
228bfffba1 set allday flag for scheduled revision 2017-12-19 08:26:46 +01:00
Uwe Steinmann
3b3b5efafe getTimeline() returns documents with a scheduled revision 2017-12-19 08:19:48 +01:00
Uwe Steinmann
7129b9737c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-19 07:10:07 +01:00
Uwe Steinmann
ac09ee3773 new version 6.0.2 2017-12-18 14:43:22 +01:00
Uwe Steinmann
529e546600 add entry for 6.0.1 2017-12-18 13:21:04 +01:00
Uwe Steinmann
a42c42f335 do not show users removed from process unless admin 2017-12-18 13:20:33 +01:00
Uwe Steinmann
6f4577d7b2 fix call of SeedDMS_AccessOperation() 2017-12-18 13:20:12 +01:00
Uwe Steinmann
1538171d31 use countTasks instead of myTasks for counting open tasks 2017-12-18 12:41:45 +01:00
Uwe Steinmann
31853c5586 fix documentation, minor code cleanups 2017-12-18 12:41:18 +01:00
Uwe Steinmann
326a4eda2f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-18 12:21:57 +01:00
Uwe Steinmann
2364d0505b add entry for 6.0.1 2017-12-18 12:02:25 +01:00
Uwe Steinmann
6e58e2bb33 fix typo 2017-12-18 11:47:24 +01:00
Uwe Steinmann
e36fbd87d8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-18 11:10:14 +01:00
Uwe Steinmann
10cb3e1cb3 add various indexes 2017-12-18 08:57:38 +01:00
Uwe Steinmann
1048e3d181 add new method countTasks() 2017-12-18 08:45:31 +01:00
Uwe Steinmann
8784b1224b set ind. revisors by group 2017-12-18 08:42:13 +01:00
Uwe Steinmann
a320b3cc39 set ind. revisors by selecting a group 2017-12-18 08:41:31 +01:00
Uwe Steinmann
fe6d00b6e1 add new function countTasks() 2017-12-15 13:53:33 +01:00
Uwe Steinmann
a4a1100abe add preview image only if version is set 2017-12-15 13:52:24 +01:00
Uwe Steinmann
a1f98902a5 propperly set version in notification mail 2017-12-15 13:51:53 +01:00
Uwe Steinmann
6b7eb1cf3e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-12 22:12:17 +01:00
Uwe Steinmann
b63ffa490b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-12 09:35:00 +01:00
Uwe Steinmann
2a3b61aada do not set revision date if it is '0000' 2017-12-12 07:26:24 +01:00
Uwe Steinmann
6d8652f393 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-12-09 07:28:18 +01:00
Uwe Steinmann
f4c25576bc addRevisor() puts recheck into waiting if recheck has already begun
previously it was put into sleeping, which didn't the user/group
to do the recheck.
2017-12-08 10:52:23 +01:00
Uwe Steinmann
0a38435a2d remove wrong init of $accessop 2017-12-08 10:51:34 +01:00
Uwe Steinmann
87308a3c21 fix icon for revision by group 2017-12-06 13:01:35 +01:00
Uwe Steinmann
92d01dcbd3 fix php error 2017-11-27 12:06:05 +01:00
Uwe Steinmann
c657dabcda Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-24 09:30:22 +01:00
Uwe Steinmann
37a3661698 fix some indenting of lines 2017-11-21 17:26:11 +01:00
Uwe Steinmann
ed5f5bd169 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-21 13:40:13 +01:00
Uwe Steinmann
68a69c7531 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-21 10:35:43 +01:00
Uwe Steinmann
60d0a6cae4 remove duplicat call of $this->printDropFolderChooserJs() 2017-11-21 10:24:27 +01:00
Uwe Steinmann
909bfc4a30 remove old code, empty lines 2017-11-21 08:47:49 +01:00
Uwe Steinmann
c6e3aebc48 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-21 08:47:13 +01:00
Uwe Steinmann
ed6b678b5f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-21 08:36:21 +01:00
Uwe Steinmann
f5a06f8e69 remove empty line 2017-11-21 08:35:30 +01:00
Uwe Steinmann
4658db9c21 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-11-21 07:16:10 +01:00
Uwe Steinmann
18c34ce29d Merge branch 'seeddms-5.1.x' 2017-11-02 08:53:59 +01:00
Uwe Steinmann
bae2baf3f5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-10-27 19:44:07 +02:00
Uwe Steinmann
5895a6685a check access 2017-10-27 19:41:05 +02:00
Uwe Steinmann
36b51b64b1 add listExpiredOwner() 2017-10-27 16:48:18 +02:00
Uwe Steinmann
3d6dcbd181 take out duplicate getLatestContent() 2017-10-27 16:47:50 +02:00
Uwe Steinmann
68ccb13a72 add 'ExpiredOwner' to getDocumentList() 2017-10-27 16:47:09 +02:00
Uwe Steinmann
5149511aaa Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-10-27 15:01:18 +02:00
Uwe Steinmann
f3d4b86bae remove unused revisionDate in SeedDMS_Core_DocumentFile 2017-09-28 07:27:43 +02:00
Uwe Steinmann
22dce2fdf1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-28 07:26:49 +02:00
Uwe Steinmann
c54e16c3b4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-27 18:42:54 +02:00
Uwe Steinmann
5b2da28edd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-27 07:02:38 +02:00
Uwe Steinmann
d152d9f3af Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-05 18:22:25 +02:00
Uwe Steinmann
b7014a6b21 Merge branch 'seeddms-5.1.x' 2017-09-05 09:02:05 +02:00
Uwe Steinmann
04346aa4b8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-09-05 06:30:17 +02:00
Uwe Steinmann
d73071b38e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-29 17:00:14 +02:00
Uwe Steinmann
58bd26966d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-29 09:22:33 +02:00
Uwe Steinmann
79dd5a2f42 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-29 07:41:41 +02:00
Uwe Steinmann
f1b502b2f2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-29 06:21:53 +02:00
Uwe Steinmann
38f90b400d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-24 08:35:19 +02:00
Uwe Steinmann
94b79fcd09 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-23 13:47:18 +02:00
Uwe Steinmann
e67e830946 add links to remove process without a user/group 2017-08-22 18:01:23 +02:00
Uwe Steinmann
2de2fc00fc add removal of users/groups which has been deleted 2017-08-22 18:00:50 +02:00
Uwe Steinmann
81b153ccd5 add removal of receipts and revisions for users/group no longer available 2017-08-22 18:00:06 +02:00
Uwe Steinmann
716cbfa090 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-22 11:34:48 +02:00
Uwe Steinmann
1c4944b166 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-22 07:18:32 +02:00
Uwe Steinmann
eba5645281 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-22 07:15:46 +02:00
Uwe Steinmann
01fb6feeca Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-22 06:24:59 +02:00
Uwe Steinmann
0b8666629b minor fix when dropping a key 2017-08-22 06:20:38 +02:00
Uwe Steinmann
c86525e383 add entry to 6.0.1 2017-08-21 13:44:32 +02:00
Uwe Steinmann
0c8daca856 fix wrong check for extings approval/review file 2017-08-21 13:43:36 +02:00
Uwe Steinmann
7d0a18861b add note for 6.0.1 2017-08-03 12:43:25 +02:00
Uwe Steinmann
f181ca044d ReceiveOwner list does not contain old versions anymore 2017-08-03 12:42:56 +02:00
Uwe Steinmann
f54ed82496 put '()' around last access 2017-08-03 08:12:13 +02:00
Uwe Steinmann
ccc6112714 fix columns of listProcessesWithoutUserGroup 2017-08-03 07:44:26 +02:00
Uwe Steinmann
7c363ff4ef init $processwithoutusergroup 2017-08-03 07:40:42 +02:00
Uwe Steinmann
4e55911213 fix syntax errors 2017-08-03 07:39:22 +02:00
Uwe Steinmann
52a9e37729 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-03 07:38:05 +02:00
Uwe Steinmann
1886b160b9 add single checks for process without user/group 2017-08-03 07:12:46 +02:00
Uwe Steinmann
94a4844616 run check only if required
speeds up calling a single check
2017-08-03 07:12:03 +02:00
Uwe Steinmann
d82f8c44d1 add receipts and revisions in getProcessWithoutUserGroup() 2017-08-03 07:11:25 +02:00
Uwe Steinmann
e878f438fd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-02 18:03:44 +02:00
Uwe Steinmann
658a666f15 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-02 16:05:42 +02:00
Uwe Steinmann
ed1f74baca fix merge error 2017-08-02 12:15:13 +02:00
Uwe Steinmann
9e4b80e25b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-02 12:14:14 +02:00
Uwe Steinmann
9fe0a39321 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-01 11:33:35 +02:00
Uwe Steinmann
df193261b3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-01 09:11:20 +02:00
Uwe Steinmann
52395af0ce add entry for 6.0.1 2017-08-01 08:46:34 +02:00
Uwe Steinmann
8f59babaad Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-08-01 08:37:31 +02:00
Uwe Steinmann
85cc7c017f send mails to reviewer and approver 2017-08-01 08:36:17 +02:00
Uwe Steinmann
e8b09b3f03 do not send notification to owner anymore
was sent when current user != owner
2017-08-01 08:04:46 +02:00
Uwe Steinmann
887612ddf9 add entry for 6.0.1 2017-07-31 15:37:20 +02:00
Uwe Steinmann
547eb06725 show logs to owner of document 2017-07-31 15:37:05 +02:00
Uwe Steinmann
b5a7f41a8e show logs to owner of document 2017-07-31 15:36:34 +02:00
Uwe Steinmann
b0dfeca98b show progress of receptions also to owner of document, show numbers 2017-07-31 15:12:12 +02:00
Uwe Steinmann
3074e2f530 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 14:49:36 +02:00
Uwe Steinmann
b0013b9304 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 14:23:30 +02:00
Uwe Steinmann
2de7d8931a set status[receipt] and status[revision] to empty array if not set 2017-07-31 14:22:12 +02:00
Uwe Steinmann
7b5412ff36 remove from process only if status[receipt], status[revision] is not set 2017-07-31 14:21:24 +02:00
Uwe Steinmann
596cb2afd6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 14:18:18 +02:00
Uwe Steinmann
cda9f99f9e show right values for receipts and revisions 2017-07-31 14:13:27 +02:00
Uwe Steinmann
07d760d7d8 fix remove from process for receipts and revisions 2017-07-31 14:13:02 +02:00
Uwe Steinmann
014b7ac201 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 13:22:28 +02:00
Uwe Steinmann
4c60fbde5d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 12:52:53 +02:00
Uwe Steinmann
88585418f8 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 12:43:05 +02:00
Uwe Steinmann
acb6337503 remove receipts and revisions 2017-07-31 12:41:28 +02:00
Uwe Steinmann
114a8a3ac1 move code in remove() into __removeFromProcesses() 2017-07-31 11:54:24 +02:00
Uwe Steinmann
afefe1d66c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-31 11:49:43 +02:00
Uwe Steinmann
a2802f124d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 18:25:49 +02:00
Uwe Steinmann
e953d9dcbb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 15:12:00 +02:00
Uwe Steinmann
4d178a225d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 11:24:09 +02:00
Uwe Steinmann
7f76864f41 take out entry from 6.0.1 because feature was added in 5.1.3 2017-07-28 11:22:31 +02:00
Uwe Steinmann
6cebc644c2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 11:21:58 +02:00
Uwe Steinmann
2c41c57a13 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 10:32:10 +02:00
Uwe Steinmann
8b9875a771 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 10:30:31 +02:00
Uwe Steinmann
378e071232 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-28 10:25:54 +02:00
Uwe Steinmann
bfd8184648 notes for 6.0.1 2017-07-27 22:11:42 +02:00
Uwe Steinmann
e851c7967a list number of all open tasks in user info 2017-07-27 22:11:17 +02:00
Uwe Steinmann
29bc0c1fda getNotifyList() returns only users which are not disabled 2017-07-27 22:10:44 +02:00
Uwe Steinmann
268d844b43 fix some comments 2017-07-27 21:17:58 +02:00
Uwe Steinmann
ab141b84df show last access in online users only to admins 2017-07-27 21:17:31 +02:00
Uwe Steinmann
dd94898b19 import revisions 2017-07-27 21:17:11 +02:00
Uwe Steinmann
88d89c206d export revision date 2017-07-27 21:16:38 +02:00
Uwe Steinmann
1f701a84e4 group last access sessions by userid 2017-07-27 13:42:12 +02:00
Uwe Steinmann
ffc00a6beb add entry for 6.0.1 2017-07-27 13:27:37 +02:00
Uwe Steinmann
aabbb5c254 add notes for 6.0.1 2017-07-27 13:27:25 +02:00
Uwe Steinmann
9f2fd0e2ec check for int -1 and 1 instead of string "-1" and "1"
SeedDMS_Acl_Aro::getPermission() returns int anyway
2017-07-27 12:36:42 +02:00
Uwe Steinmann
05489891f7 getPermission() returns always an int 2017-07-27 12:36:20 +02:00
Uwe Steinmann
c953d02604 views instead of temp. tables can be used
This speeds up many sql statements for mysql and pgsql
2017-07-27 12:34:46 +02:00
Uwe Steinmann
f5333e7c8d fix field name in getDocumentList(), 'maxLogId' must be 'maxLogID'
otherwise the statement fails for pgsql
2017-07-27 12:32:27 +02:00
Uwe Steinmann
752f4e8760 take out order by in temp. tables 2017-07-26 12:14:56 +02:00
Uwe Steinmann
b5ae39836c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-26 07:56:05 +02:00
Uwe Steinmann
8b848cc05a set 'showtree' for view 2017-07-26 07:55:49 +02:00
Uwe Steinmann
ee13f8d084 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-21 16:56:33 +02:00
Uwe Steinmann
29ec098798 correct entry for 6.0.1 2017-07-21 16:08:04 +02:00
Uwe Steinmann
62878f29e0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-21 16:07:43 +02:00
Uwe Steinmann
0483e44ddc new note for 6.0.1 2017-07-21 14:43:02 +02:00
Uwe Steinmann
d954b4df1d getReverseSubstitutes() works with roles 2017-07-21 14:41:39 +02:00
Uwe Steinmann
66044f8b4a add entry for 6.0.1 2017-07-21 13:56:59 +02:00
Uwe Steinmann
6847e1b6db check if user has access and is not disabled іf reviewer, approver, etc.
also check if group has members if set as reviewer, approver, etc.
2017-07-21 13:52:57 +02:00
Uwe Steinmann
aa162b6601 add note for 6.0.1 2017-07-21 11:48:52 +02:00
Uwe Steinmann
26cb15fe21 verify status after setting revisors 2017-07-21 11:48:32 +02:00
Uwe Steinmann
37e03e2e9e SeedDMS_Core_Document::checkForDueRevisionWorkflow() also checks if there are any waiting or pending revisions at all 2017-07-21 11:48:01 +02:00
Uwe Steinmann
6aee48fc08 do not try to get orderby and orderdir from view, because it is not set 2017-07-20 18:22:58 +02:00
Uwe Steinmann
09dd448b40 set right message when removing revisor 2017-07-20 18:22:33 +02:00
Uwe Steinmann
a846bcf633 replace sql statement by function in SeedDMS_Core_Document 2017-07-20 18:21:24 +02:00
Uwe Steinmann
bbad479580 use define S_LOG_USER_REMOVED 2017-07-20 18:21:05 +02:00
Uwe Steinmann
7c01cadb2f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-20 17:05:25 +02:00
Uwe Steinmann
58a90d595f get setfilesize from view 2017-07-20 17:02:37 +02:00
Uwe Steinmann
cfc73b1183 check if user is disabled in list of receiver, revisors 2017-07-20 17:02:09 +02:00
Uwe Steinmann
28e84443d8 check if comment has been set already in list of receiption comments 2017-07-20 17:01:25 +02:00
Uwe Steinmann
c03566336a skip user if disabled 2017-07-20 17:00:41 +02:00
Uwe Steinmann
9e87300567 also check if user is disabled 2017-07-20 17:00:19 +02:00
Uwe Steinmann
7259c668c4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-20 15:09:39 +02:00
Uwe Steinmann
5d6a56d95c add missing engl. translations 2017-07-20 15:00:42 +02:00
Uwe Steinmann
6ee9288cb0 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-19 17:24:33 +02:00
Uwe Steinmann
fdf14b2a1f Merge branch 'seeddms-5.1.x' 2017-07-19 08:30:53 +02:00
Uwe Steinmann
0b88f3b30b add script for checking for open tasks of each or individual users 2017-07-19 08:26:03 +02:00
Uwe Steinmann
7601e62504 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-18 13:38:36 +02:00
Uwe Steinmann
78e1ac7572 add filter for doc status 4 and 5 2017-07-18 13:37:09 +02:00
Uwe Steinmann
d879cc6114 group recepition comments in documentListRow() 2017-07-18 13:36:28 +02:00
Uwe Steinmann
00b4817bc7 add formatComment()
used to group comments entered for receiption of document
2017-07-18 13:35:35 +02:00
Uwe Steinmann
a5688a7c3b turn on new sql statements in getDocumentList() 2017-07-18 13:35:01 +02:00
Uwe Steinmann
5c882bdbb2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-17 18:00:09 +02:00
Uwe Steinmann
3fd1dfe87a fix sql for creating temp table ttreviewid and ttapproveid 2017-07-17 17:52:19 +02:00
Uwe Steinmann
3213aa168f more efficient sql code in getDocumentList() 2017-07-17 17:51:38 +02:00
Uwe Steinmann
b855389965 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-13 18:08:56 +02:00
Uwe Steinmann
d7f679428d add entry for 6.0.1 2017-07-13 14:58:47 +02:00
Uwe Steinmann
d6e10dddd6 pass $content to controller, not $latestContent
$latestContent and $content are different objects. If $latestContent
is passed to the controller, its status will be updated in the object
but $content has still the old status. Getting the status later on
from $content, still returns the old content.
2017-07-13 14:55:51 +02:00
Uwe Steinmann
6e37e1ded6 fix check for new content status 2017-07-13 14:11:04 +02:00
Uwe Steinmann
e79a0015f9 Merge tag '5.1.2' 2017-07-11 18:05:39 +02:00
Uwe Steinmann
8e3919ae09 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-11 11:23:08 +02:00
Uwe Steinmann
7f1766ba94 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-10 15:12:19 +02:00
Uwe Steinmann
efd8273901 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-10 15:06:33 +02:00
Uwe Steinmann
18b7df494e Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-10 11:14:20 +02:00
Uwe Steinmann
c26d13484f fix regex expression 2017-07-10 10:32:21 +02:00
Uwe Steinmann
99682a11d1 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-07-10 07:50:33 +02:00
Uwe Steinmann
410654cb19 add more entries for 6.0.1 2017-07-05 14:40:57 +02:00
Uwe Steinmann
bb4c6fe83b show if user has no access on document he/she has to receipt 2017-07-05 10:49:39 +02:00
Uwe Steinmann
310fa41bc2 return more entries in printProtocol() for receipt list 2017-07-05 10:48:56 +02:00
Uwe Steinmann
c6f7b03700 also check for access on document content 2017-07-05 10:48:24 +02:00
Uwe Steinmann
bdcf9d8e93 add notes for 6.0.1 2017-07-05 10:48:03 +02:00
Uwe Steinmann
1249d069c7 add note on deprecated $noReadForStatus 2017-07-05 10:47:23 +02:00
Uwe Steinmann
0e2b8df36b fix sql statement to create temp table ttrevisionid and ttreceiptid 2017-07-05 10:45:12 +02:00
Uwe Steinmann
1326f825d3 $dms->noReadForStatus no longer needed
SeedDMS_Core_DocumentContent::getAccessMode() retrieves the role based
access restrictions from the role of the given user
2017-07-05 10:43:14 +02:00
Uwe Steinmann
2a38d713b8 get approval status before sending notification mails
the approval status was simply not known because part of the code
went into the controller
2017-06-29 15:34:32 +02:00
Uwe Steinmann
7372ccfe11 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-06-26 10:26:17 +02:00
Uwe Steinmann
919f4cb39c Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-06-26 10:20:48 +02:00
Uwe Steinmann
e7b0e7bdde Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-06-19 12:52:12 +02:00
Uwe Steinmann
977f28c30c fix merge errors 2017-06-14 16:26:01 +02:00
Uwe Steinmann
b59b6a0cfb pass initial status from settings to updateDocument 2017-06-14 14:04:38 +02:00
Uwe Steinmann
652e7a82af Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-06-13 14:48:55 +02:00
Uwe Steinmann
98e7615c5b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-05-12 18:46:25 +02:00
Uwe Steinmann
72aa0375b7 take out old method menuTask() 2017-05-12 14:19:10 +02:00
Uwe Steinmann
092967004a Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-05-12 08:23:42 +02:00
Uwe Steinmann
3cc572a1cd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-05-02 06:47:42 +02:00
Uwe Steinmann
c9bdac8d33 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-04-11 17:37:04 +02:00
Uwe Steinmann
62a1d2d7ec do not include ClassAccessOperation 2017-04-11 17:35:17 +02:00
Uwe Steinmann
c1b6fbf11a remove duplicate method getUser() 2017-04-11 17:10:32 +02:00
Uwe Steinmann
a548710a55 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-04-11 17:08:59 +02:00
Uwe Steinmann
510067a714 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-04-11 06:42:27 +02:00
Uwe Steinmann
ffb4f3179d add changes for 6.0.1 2017-04-04 07:33:58 +02:00
Uwe Steinmann
dde99fa150 call hook 'rawcontent' when downloading search result with content 2017-04-04 07:12:13 +02:00
Uwe Steinmann
10b62bc7fb call hook 'rawcontent' 2017-04-04 07:11:51 +02:00
Uwe Steinmann
d7af33f579 raw content can be set for files added to archive
Setting the raw content will take the meta data from the document
content but use the file content as passed by the third optional
parameter of addItem()
2017-04-04 07:09:56 +02:00
Uwe Steinmann
3a615b6e06 optimize sql code to get locked documents 2017-03-24 13:29:00 +01:00
Uwe Steinmann
da5dc944e7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-24 09:18:11 +01:00
Uwe Steinmann
923df99443 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-24 08:29:28 +01:00
Uwe Steinmann
72c5bd237b Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-23 18:48:45 +01:00
Uwe Steinmann
c18f09d344 start new version 6.0.1 2017-03-23 15:22:55 +01:00
Uwe Steinmann
470e946ec2 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-23 15:19:53 +01:00
Uwe Steinmann
050a2e60df remove some debug echos 2017-03-23 07:07:57 +01:00
Uwe Steinmann
7e306054a7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-20 21:38:01 +01:00
Uwe Steinmann
0c4103ce34 Merge branch 'seeddms-5.0.x' 2017-03-20 15:46:04 +01:00
Uwe Steinmann
c01c59e2e5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-20 12:44:49 +01:00
Uwe Steinmann
a65315c537 move all task output into own view 2017-03-20 12:41:21 +01:00
Uwe Steinmann
df27dcf878 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-20 11:54:55 +01:00
Uwe Steinmann
43b613c210 add method rewriteRevisionLog() 2017-03-09 11:33:09 +01:00
Uwe Steinmann
ee4215f89e rewriteReceiptLog() can handle none exiting users 2017-03-09 11:14:31 +01:00
Uwe Steinmann
0cfd663275 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 11:09:49 +01:00
Uwe Steinmann
9905a1ed75 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 10:22:58 +01:00
Uwe Steinmann
d2bf22994d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 09:34:32 +01:00
Uwe Steinmann
e70cadf5dd Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 07:58:07 +01:00
Uwe Steinmann
caf35ad868 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 07:40:39 +01:00
Uwe Steinmann
3ac9bcafc7 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-09 07:16:24 +01:00
Uwe Steinmann
d95943a365 enlarge interval for checkTask() and timeout of ajax call 2017-03-08 21:57:02 +01:00
Uwe Steinmann
3853f0010f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-08 13:17:29 +01:00
Uwe Steinmann
e5326430cb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-06 11:42:56 +01:00
Uwe Steinmann
322bef00a2 include inc/inc.ClassAcl.php 2017-03-06 10:56:16 +01:00
Uwe Steinmann
858b9b4b38 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-06 10:54:16 +01:00
Uwe Steinmann
132f146a9f Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-06 10:52:36 +01:00
Uwe Steinmann
469270882c add receiptlog 2017-03-03 22:09:42 +01:00
Uwe Steinmann
b05a7f2ba5 add method rewriteReceiptLog() 2017-03-03 22:07:15 +01:00
Uwe Steinmann
5bdf7868d5 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-03 15:00:04 +01:00
Uwe Steinmann
390a653b94 do not show 'AddFile' link if access is not allowed 2017-03-03 14:10:03 +01:00
Uwe Steinmann
4fe435f450 fix error msg when access is not allowed 2017-03-03 14:09:25 +01:00
Uwe Steinmann
0a8261fdcb Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-03 12:08:05 +01:00
Uwe Steinmann
012d4d9f8d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-03-03 09:43:45 +01:00
Uwe Steinmann
e9c029e8fc fix syntax error 2017-02-28 17:12:27 +01:00
Uwe Steinmann
6e9b840e45 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-28 17:06:58 +01:00
Uwe Steinmann
ff3dd800e4 Merge branch 'seeddms-5.0.x' 2017-02-27 20:18:46 +01:00
Uwe Steinmann
35594e23f9 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-27 18:04:04 +01:00
Uwe Steinmann
fea676c1d4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-24 19:07:23 +01:00
Uwe Steinmann
8d7c8a0bdf Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-22 13:22:51 +01:00
Uwe Steinmann
293091d13d fix includes 2017-02-22 09:44:47 +01:00
Uwe Steinmann
ce3c2d4f80 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-22 09:41:54 +01:00
Uwe Steinmann
e102f5d6bc include PHPExcel from vendor directory 2017-02-22 09:30:10 +01:00
Uwe Steinmann
32241d1403 include feedwriter from vendor 2017-02-22 09:22:06 +01:00
Uwe Steinmann
37fb2e2c47 pass access object to view, don't use mode anymore 2017-02-21 15:37:29 +01:00
Uwe Steinmann
7f28008d5d get and set secret of user 2017-02-21 08:16:22 +01:00
Uwe Steinmann
f6786406ef Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-21 07:31:33 +01:00
Uwe Steinmann
6006dd3944 fix all sql errors 2017-02-21 07:23:02 +01:00
Uwe Steinmann
9aadb7f471 fix merge errors 2017-02-21 07:04:49 +01:00
Uwe Steinmann
4b1b702fc5 add update for postgresql 2017-02-21 06:54:53 +01:00
Uwe Steinmann
63920fdce8 set ENGINE for tblUserSubstitutes 2017-02-21 06:54:06 +01:00
Uwe Steinmann
08e9f14e9d fix merge error 2017-02-21 06:53:43 +01:00
Uwe Steinmann
6b8b099339 set propper version in tblVersion 2017-02-21 06:34:22 +01:00
Uwe Steinmann
b03fcc5b6a fix versions 2017-02-21 06:20:03 +01:00
Uwe Steinmann
7fc7ffd708 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-21 06:16:32 +01:00
Uwe Steinmann
fa5721c2cb Merge branch 'seeddms-6.0.x-postgres' into seeddms-6.0.x 2017-02-20 17:38:35 +01:00
Uwe Steinmann
4c794381e6 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-20 17:34:43 +01:00
Uwe Steinmann
283c51b193 print_r detailed error msg 2017-02-20 17:11:37 +01:00
Uwe Steinmann
d7403d3745 set sequence after insert 2017-02-20 17:11:37 +01:00
Uwe Steinmann
a761b0b417 set pwdexpiration to '' if it is '0000-00-00' 2017-02-20 17:11:37 +01:00
Uwe Steinmann
8988bc0098 make mimeType varchar(100) in tblDocumentContents and tblDocumentFiles 2017-02-20 17:11:37 +01:00
Uwe Steinmann
a18b3c6879 add sql statement for pgsql in TableList() 2017-02-20 17:11:37 +01:00
Uwe Steinmann
bfbd845bab add sql code for creating temp tables ttreceiptid and ttrevisionid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
50919f40c1 add sql for creating temp tables ttreviewid and ttapproveid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
1a03adebbd add create of temp table ttstatid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
2c775b560f add creation of temp table ttcontentid 2017-02-20 17:11:37 +01:00
Uwe Steinmann
b1bd666386 update to 5.1.x 2017-02-20 17:11:37 +01:00
Uwe Steinmann
e0f7c16a10 add database layout for postgres 2017-02-20 17:11:37 +01:00
Uwe Steinmann
7467df155d fix getInsertID() for identifier in upper/lower case 2017-02-20 17:11:37 +01:00
Uwe Steinmann
cafdd457c8 pass tablename to getInsertID() 2017-02-20 17:11:37 +01:00
Uwe Steinmann
0239edd4ee adjust date function to postgresql 2017-02-20 17:11:37 +01:00
Uwe Steinmann
c55b595ae9 pass tablename to getInsertID(), add pgsql as new db driver 2017-02-20 17:11:37 +01:00
Uwe Steinmann
e1fdfdbef6 set version to 6.0.0 2017-02-20 17:10:47 +01:00
Uwe Steinmann
89b0861f9e move db changes back into version 5.1.0 2017-02-20 09:11:27 +01:00
Uwe Steinmann
455014b2c1 fix dir name 2017-02-20 09:05:19 +01:00
Uwe Steinmann
38740e3a8b move update dir to new version 2017-02-20 08:59:02 +01:00
Uwe Steinmann
784505ce4c change version from 5.1.x to 6.0.x 2017-02-20 08:48:40 +01:00
Uwe Steinmann
be16e7edce Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-15 08:24:23 +01:00
Uwe Steinmann
4aaf7f78e8 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-14 21:13:10 +01:00
Uwe Steinmann
b310d3065d Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-14 21:08:56 +01:00
Uwe Steinmann
c1727652a8 make mimeType in tblDocumentContent and tblDocumentFiles varchar(100) 2017-02-14 17:59:20 +01:00
Uwe Steinmann
7dfbad5451 add missing backticks around identifier in sql statement 2017-02-14 16:59:52 +01:00
Uwe Steinmann
05cf0b83f4 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-14 14:58:41 +01:00
Uwe Steinmann
7f1dc2dfe1 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-14 11:43:17 +01:00
Uwe Steinmann
e58f0888b5 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-14 09:06:23 +01:00
Uwe Steinmann
c785906ffb Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 18:23:46 +01:00
Uwe Steinmann
27a323a38f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 18:20:49 +01:00
Uwe Steinmann
602903de46 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 18:16:50 +01:00
Uwe Steinmann
e74a9a4295 add missing backticks around identifier 2017-02-13 17:32:22 +01:00
Uwe Steinmann
2b91fb06bc put backticks around identifier 2017-02-13 16:51:57 +01:00
Uwe Steinmann
89811361bb Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 12:49:09 +01:00
Uwe Steinmann
42c050588b Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 12:48:20 +01:00
Uwe Steinmann
f6aded2428 put backticks around identifiers in sql statements 2017-02-13 12:37:26 +01:00
Uwe Steinmann
7d82b73208 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-02-13 12:12:07 +01:00
Uwe Steinmann
7401330e81 do not set date to 0000:00:00 ... use NULL instead 2017-01-27 08:11:04 +01:00
Uwe Steinmann
211a3bc6bc Merge branch 'seeddms-5.0.x' 2017-01-26 15:51:47 +01:00
Uwe Steinmann
eb82f8cc19 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-26 14:44:47 +01:00
Uwe Steinmann
94cf017102 add entry to 5.1.2 2017-01-25 15:11:12 +01:00
Uwe Steinmann
efa316dbf8 propperly set defaultaccess 2017-01-25 15:09:51 +01:00
Uwe Steinmann
247f27fa54 add more notes to 5.1.2 2017-01-25 14:58:41 +01:00
Uwe Steinmann
a7ea074328 set formtoken in button to sustitute user 2017-01-25 14:53:23 +01:00
Uwe Steinmann
b90d1a6be5 pass comment to finishRevision() 2017-01-25 14:51:38 +01:00
Uwe Steinmann
0d5f7a607a finishRevision() puts document version in to 'waiting'
need to be able to start a new revision
2017-01-25 14:49:37 +01:00
Uwe Steinmann
c98ff36977 minor uncrucial corrections 2017-01-25 14:49:05 +01:00
Uwe Steinmann
b07cd2d442 fix getRevisionStatus()
it didn't always return the last entry of the revision log
2017-01-25 14:48:12 +01:00
Uwe Steinmann
40956e9501 paѕs owner to controller 2017-01-25 12:24:47 +01:00
Uwe Steinmann
f4648a7023 take out old function tree(), fix listing missing checksums 2017-01-25 11:56:01 +01:00
Uwe Steinmann
cf3dba89e0 add note to 5.1.2 2017-01-25 11:55:33 +01:00
Uwe Steinmann
ec4712b5bf limit sql statement in getDuplicateDocumentContent() to 1000 hits 2017-01-25 11:54:36 +01:00
Uwe Steinmann
99a83c0d97 set showtree in view 2017-01-25 10:43:43 +01:00
Uwe Steinmann
475239e1ba turn of sorting in lists 2017-01-25 10:43:21 +01:00
Uwe Steinmann
d200070c16 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-25 10:00:56 +01:00
Uwe Steinmann
2077cd6bcb add items to 5.1.2 2017-01-25 09:56:52 +01:00
Uwe Steinmann
86530371f4 add changes to 5.1.2 2017-01-25 09:55:15 +01:00
Uwe Steinmann
69e1bb66ad list documents in revision/reception without access 2017-01-25 09:53:18 +01:00
Uwe Steinmann
761247fe0d add new methods getDocumentsInReception() and getDocumentsInRevision() 2017-01-25 09:52:48 +01:00
Uwe Steinmann
bbcff75b00 create temp table for document revisions 2017-01-25 09:52:16 +01:00
Uwe Steinmann
8c63cc607b Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-24 14:23:48 +01:00
Uwe Steinmann
b814b07e2a reorganize page like MyDocuments page 2017-01-24 14:20:43 +01:00
Uwe Steinmann
27247438f5 call new hook finishReviseDocument 2017-01-24 14:20:10 +01:00
Uwe Steinmann
c6d69bdb75 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-23 08:57:16 +01:00
Uwe Steinmann
b1fa737b56 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-23 07:58:23 +01:00
Uwe Steinmann
4108cf1696 add saving list of users and groupѕ 2017-01-23 07:53:01 +01:00
Uwe Steinmann
3c05f5f5cb save array in ext configuration as comma separated list 2017-01-23 07:52:19 +01:00
Uwe Steinmann
e280a6afa9 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-20 15:02:27 +01:00
Uwe Steinmann
c1e38ec059 add note to 5.1.2 2017-01-20 14:30:26 +01:00
Uwe Steinmann
4191a8feb7 list protocol of receipts and revisions 2017-01-20 14:28:30 +01:00
Uwe Steinmann
db22c3f348 getReviewersStatus() and getReceiptStatus() only return last version
the return lists will no longer include a revision, receipt for version
of a document not being the last version
2017-01-20 14:26:55 +01:00
Uwe Steinmann
c63f994a5f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-18 15:13:18 +01:00
Uwe Steinmann
39bebbdcf6 switch to new access restrictions 2017-01-18 15:08:25 +01:00
Uwe Steinmann
6513642efb change order of lists in section 'tasks'
has now same order like tasks in the header menu
2017-01-18 11:39:29 +01:00
Uwe Steinmann
825c4378a0 add latest version 5.1.2 which somehow got lost 2017-01-18 11:08:17 +01:00
Uwe Steinmann
16342981eb output progressbar only if receipts are available 2017-01-18 11:00:38 +01:00
Uwe Steinmann
17b72a9d0c add entry to 5.1.2 2017-01-18 08:46:43 +01:00
Uwe Steinmann
e6e14fb37a show comments of reception seperated by decline/aknowledge 2017-01-18 08:45:27 +01:00
Uwe Steinmann
f3b5af1c43 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-18 08:32:48 +01:00
Uwe Steinmann
4baa37b2d9 use translated text for comments popupbox 2017-01-18 08:30:11 +01:00
Uwe Steinmann
d3c7ef3088 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-18 08:11:12 +01:00
Uwe Steinmann
b769ae3805 use popupbox to show comments of document reception 2017-01-17 20:40:42 +01:00
Uwe Steinmann
9a675bafb4 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-17 18:36:17 +01:00
Uwe Steinmann
1c281b98e8 replace table layout by form controll 2017-01-17 18:32:17 +01:00
Uwe Steinmann
5e93bea2fd show status of reception if document is owned by current user 2017-01-17 18:31:44 +01:00
Uwe Steinmann
14d2a7263b pass all parameters to hook documentListItem, remove old code 2017-01-17 18:31:06 +01:00
Uwe Steinmann
eefdfb676a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-17 17:43:55 +01:00
Uwe Steinmann
600cd490a4 first check if document is accessible before calling hook documentListRow() 2017-01-17 17:31:44 +01:00
Uwe Steinmann
24624f6136 split printList() in printListHeader(), printListFooter() and printList() 2017-01-17 15:15:40 +01:00
Uwe Steinmann
56e7f567c7 enable turn off of updating document reception 2017-01-17 14:20:33 +01:00
Uwe Steinmann
3fee35fd3a fix typo 2017-01-17 13:54:26 +01:00
Uwe Steinmann
e0ac6e0349 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-17 13:52:08 +01:00
Uwe Steinmann
c12eed91b3 add items for 5.1.2 2017-01-17 13:45:16 +01:00
Uwe Steinmann
520a783407 add list listReceiveOwner(), group lists in sections 2017-01-17 13:44:57 +01:00
Uwe Steinmann
ba4a6558b4 add new document list ReceiveOwner, list docs with revision in AppRevOwner 2017-01-17 13:44:19 +01:00
Uwe Steinmann
e562ad14cd take out link to network drive
The URL doesn't contain the username anymore
2017-01-17 10:16:23 +01:00
Uwe Steinmann
9d2ed9dc97 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-17 08:59:05 +01:00
Uwe Steinmann
f6d3e9785f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-16 15:52:19 +01:00
Uwe Steinmann
c09146796f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-12 21:06:54 +01:00
Uwe Steinmann
b832ace635 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-12 18:22:21 +01:00
Uwe Steinmann
d0662a6132 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-12 18:08:24 +01:00
Uwe Steinmann
ba621af162 update tasks in menu only if logged in 2017-01-11 18:17:52 +01:00
Uwe Steinmann
32da91d145 add item to 5.1.2 2017-01-11 18:08:16 +01:00
Uwe Steinmann
66e6cec446 add filter for status 'S_DRAFT' 2017-01-11 17:49:21 +01:00
Uwe Steinmann
7a721ee84f make all list sortable by fields in header 2017-01-10 21:25:45 +01:00
Uwe Steinmann
2d2ebdc887 add ordering to all list in getDocumentList() 2017-01-10 21:25:15 +01:00
Uwe Steinmann
47f43a47ba fix validation of alternative file upload/import fields 2017-01-10 09:23:27 +01:00
Uwe Steinmann
95cdf17527 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-10 09:13:38 +01:00
Uwe Steinmann
e49f675cfc Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-10 08:48:18 +01:00
Uwe Steinmann
05f1919e3c set Content-Disposition even if file type not in list of online file types 2017-01-10 08:45:21 +01:00
Uwe Steinmann
8375b66cbe Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-10 07:41:58 +01:00
Uwe Steinmann
d659627959 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-10 07:08:18 +01:00
Uwe Steinmann
b27b8ba7fd check access rights in controller, not before 2017-01-10 06:58:07 +01:00
Uwe Steinmann
5584cedce3 fix validation if just file from library is given 2017-01-10 06:36:45 +01:00
Uwe Steinmann
fae159a5f3 set name of file in zip file to 'docid'-'version'-'docname' (Closes #95) 2017-01-09 21:33:45 +01:00
Uwe Steinmann
95ebfe1657 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-09 21:13:42 +01:00
Uwe Steinmann
72535081d6 check for return value of mytasks api call
do nothing if data is null
2017-01-09 08:58:37 +01:00
Uwe Steinmann
fbb91c9c30 use form controls 2017-01-04 18:08:18 +01:00
Uwe Steinmann
9f0e5c4f3e Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-04 17:54:07 +01:00
Uwe Steinmann
b5f8e9efcc readd [post|pre]PreviewDocument hooks 2017-01-04 17:23:59 +01:00
Uwe Steinmann
8b1b9fdb2a set $dms in preview() 2017-01-04 17:14:45 +01:00
Uwe Steinmann
7d8f4f54c0 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-01-04 17:11:39 +01:00
Uwe Steinmann
c6d26ec3fa Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-12-15 06:42:15 +01:00
Uwe Steinmann
e49c9e1c98 Merge branch 'seeddms-5.0.x' 2016-12-12 10:32:27 +01:00
Uwe Steinmann
e21e897468 use keywords for different searches for document reception 2016-11-22 17:58:59 +01:00
Uwe Steinmann
6cb5dec1a9 fix search for documents with reception acknowledgement 2016-11-22 17:58:28 +01:00
Uwe Steinmann
662d9d0d85 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-22 10:34:15 +01:00
Uwe Steinmann
2c498613b6 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-17 16:02:42 +01:00
Uwe Steinmann
7db1703477 forget to create field secret when change table tblUsers 2016-11-16 11:39:13 +01:00
Uwe Steinmann
c5a67874cf Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-14 11:27:18 +01:00
Uwe Steinmann
a8f5892562 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-14 11:11:11 +01:00
Uwe Steinmann
718762d284 check for access on document in mytasks and view->menutasks (Ticket #88)
previously documents where listed, even if the user had no access
2016-11-14 08:38:12 +01:00
Uwe Steinmann
a560035482 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-11 16:30:23 +01:00
Uwe Steinmann
106f849e82 minor documentation fix 2016-11-11 16:20:10 +01:00
Uwe Steinmann
3ddd24c7cd add expired status to list of status without access 2016-11-11 16:19:42 +01:00
Uwe Steinmann
87bbb6bf44 use orig file, set filename in utf-8 2016-11-09 19:54:53 +01:00
Uwe Steinmann
1df09242a0 don't show preview if ViewOnline isn't allowed, more access checks 2016-11-09 19:54:00 +01:00
Uwe Steinmann
ba338191cb new version 5.1.2 2016-11-08 14:06:37 +01:00
Uwe Steinmann
ca76b64ba8 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-08 12:00:44 +01:00
Uwe Steinmann
20f2d68e05 take out some old code 2016-11-05 12:28:25 +01:00
Uwe Steinmann
10a8b14eff take out search for reception 2016-11-04 20:28:22 +01:00
Uwe Steinmann
42bb8b4bf6 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-04 15:43:00 +01:00
Uwe Steinmann
d05962c58b Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-04 08:32:29 +01:00
Uwe Steinmann
4e79899323 fix copy&paste error 2016-11-03 21:44:49 +01:00
Uwe Steinmann
86ba717c83 use bootstrap tags for selection form 2016-11-03 20:29:45 +01:00
Uwe Steinmann
44bc96835a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-03 20:25:04 +01:00
Uwe Steinmann
c2446c48f5 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-03 20:20:33 +01:00
Uwe Steinmann
e5016cf4f1 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-11-03 19:46:07 +01:00
Uwe Steinmann
e8ec31e293 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-27 17:07:34 +02:00
Uwe Steinmann
408cd5a3eb fix fatal error when recipients were removed from list 2016-10-27 14:35:04 +02:00
Uwe Steinmann
f9d2d9dc48 make sure only users allowed to be a revcipient are saved 2016-10-27 14:28:54 +02:00
Uwe Steinmann
94dbc6b240 do not take enableOwnerRe[vApp|cipt] into account
if a user has been assigen as Reviewer/Approver/Revisor and became
the owner of the document in the mean timer or the configuration has
change he/she should still be able to do the review/approval/revision
2016-10-27 14:23:26 +02:00
Uwe Steinmann
2bc839918a take enableXxxxRevApp into account 2016-10-27 14:22:49 +02:00
Uwe Steinmann
ef4b6578cc check if setting revisor is allowed, pass enableXXXRevApp to view 2016-10-27 14:21:57 +02:00
Uwe Steinmann
9ac66febee add config paramter enableAdminReceipt
allows admins in list of possible recipients of documents
2016-10-27 14:11:18 +02:00
Uwe Steinmann
e10b6974ae add new config flag which allows doc reception by owner 2016-10-27 12:17:04 +02:00
Uwe Steinmann
ba5a73df45 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-27 11:19:45 +02:00
Uwe Steinmann
cc387a1f52 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-27 09:39:08 +02:00
Uwe Steinmann
04cb20a814 define and initialize $_ttreceiptid 2016-10-26 19:25:35 +02:00
Uwe Steinmann
d3c12a84fd Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-25 10:02:09 +02:00
Uwe Steinmann
8592554ad7 set showtree in view 2016-10-16 09:56:19 +02:00
Uwe Steinmann
622c6e134e Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-16 08:29:58 +02:00
Uwe Steinmann
bf2ebc561c start new version 5.1.2 2016-10-06 15:30:58 +02:00
Uwe Steinmann
3d1e6eede0 role has now id 3 instead of 0 2016-10-06 15:30:02 +02:00
Uwe Steinmann
2cc90ccbaf Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-06 15:29:11 +02:00
Uwe Steinmann
500bbb552b Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-05 16:09:53 +02:00
Uwe Steinmann
489654c622 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-05 13:35:23 +02:00
Uwe Steinmann
bbc6376bcf fix setReceiptByGrp() 2016-10-05 12:39:16 +02:00
Uwe Steinmann
7597cb1c74 set recipient in notification mails 2016-10-05 12:17:20 +02:00
Uwe Steinmann
efc11d4236 do not show users in list of recipients if they were deleted
only admin will see them
2016-10-05 12:05:19 +02:00
Uwe Steinmann
35e6625601 fix calculation of already receipt documents 2016-10-05 11:16:26 +02:00
Uwe Steinmann
42de7bb0c9 fix html 2016-10-05 11:16:16 +02:00
Uwe Steinmann
f5dc479714 fix error in addIndReceipt 2016-10-05 11:15:50 +02:00
Uwe Steinmann
70db94f83c allow revision only for users allowed by settings, fix html 2016-10-05 11:15:06 +02:00
Uwe Steinmann
736b916286 allow all users to receipt a document 2016-10-05 11:14:47 +02:00
Uwe Steinmann
1c7bc39c80 fix typo, minor updates 2016-10-05 07:42:24 +02:00
Uwe Steinmann
7710f8e307 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-04 21:42:51 +02:00
Uwe Steinmann
8f851e1a3a search if only reception status is given 2016-10-04 21:28:53 +02:00
Uwe Steinmann
9d1f3b867f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-04 20:55:33 +02:00
Uwe Steinmann
b869c4253c Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-10-04 16:36:00 +02:00
Uwe Steinmann
919543bf82 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-28 21:37:59 +02:00
Uwe Steinmann
94c3ba51d1 search for each status of reception 2016-09-28 21:29:36 +02:00
Uwe Steinmann
1989657c9a search for each status of reception 2016-09-28 21:29:16 +02:00
Uwe Steinmann
88d7f252b6 create temp table ttreceiptid 2016-09-28 21:28:51 +02:00
Uwe Steinmann
3e777f987d search for each reception status (no action, rejected, acknowledged) 2016-09-28 21:28:01 +02:00
Uwe Steinmann
9746c85ce5 add search paramter for documents with missing reception 2016-09-28 20:22:59 +02:00
Uwe Steinmann
7937f73031 pass $missingreception to view 2016-09-28 20:22:42 +02:00
Uwe Steinmann
be9f987342 search for documents with missing receptions 2016-09-28 20:22:16 +02:00
Uwe Steinmann
b8e3e2d092 add $norequire as optional parameter to printAttributeEditField()
needed for search for, where fields are not required
2016-09-28 20:20:38 +02:00
Uwe Steinmann
20c3ddfd1e Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-28 14:20:41 +02:00
Uwe Steinmann
4219559450 get doc list ReviewByMe and ApproveByMe instead of AppRevByMe 2016-09-28 14:09:03 +02:00
Uwe Steinmann
e932c3efd5 allow admins and owner as revisor and reciepent 2016-09-27 17:50:30 +02:00
Uwe Steinmann
e3002fce0b Merge branch 'seeddms-5.0.x' 2016-09-23 09:07:18 +02:00
Uwe Steinmann
d3eefc41bc Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-22 18:24:32 +02:00
Uwe Steinmann
df63e1bb7e insert acos and aros 2016-09-22 08:48:28 +02:00
Uwe Steinmann
159aa09636 dump acos, aros 2016-09-22 08:48:09 +02:00
Uwe Steinmann
19d4d84e58 set model in tblAcos because it may not be null 2016-09-22 08:47:20 +02:00
Uwe Steinmann
556626501c Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-16 17:26:12 +02:00
Uwe Steinmann
839b5f72f6 fix import of transmittal items 2016-09-16 12:48:43 +02:00
Uwe Steinmann
5c558601c7 set same date fields to default null 2016-09-16 12:48:20 +02:00
Uwe Steinmann
10f01c0fc6 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-16 11:29:06 +02:00
Uwe Steinmann
da616fd4ed take out print_r 2016-09-16 06:37:30 +02:00
Uwe Steinmann
7bb3726f5b Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-15 21:44:57 +02:00
Uwe Steinmann
42ac18d962 import roles 2016-09-15 21:40:38 +02:00
Uwe Steinmann
6ba36e2cae dump roles 2016-09-15 21:40:19 +02:00
Uwe Steinmann
86b1a562c1 set text fields to default null 2016-09-15 21:39:38 +02:00
Uwe Steinmann
40e97f7363 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-15 17:04:28 +02:00
Uwe Steinmann
167e21abf7 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-06 14:50:06 +02:00
Uwe Steinmann
93f3153903 fix entry for 5.1.1 2016-09-06 12:30:39 +02:00
Uwe Steinmann
2fee305eb2 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-06 11:51:39 +02:00
Uwe Steinmann
813b265f6c Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-06 10:10:17 +02:00
Uwe Steinmann
42c20082eb Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-06 08:43:52 +02:00
Uwe Steinmann
1fb6305380 use translation for 'Save layout' 2016-09-06 07:49:16 +02:00
Uwe Steinmann
75ce06c128 check if workflow graph may be shown 2016-09-05 10:05:54 +02:00
Uwe Steinmann
f768ad63f0 pass accessobj to view 2016-09-05 10:05:37 +02:00
Uwe Steinmann
e272d26f30 add access check 2016-09-05 10:05:16 +02:00
Uwe Steinmann
a1ccc60729 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-05 08:57:18 +02:00
Uwe Steinmann
3249a8f889 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-02 08:41:28 +02:00
Uwe Steinmann
926087a448 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-09-01 22:25:56 +02:00
Uwe Steinmann
bf25274fc0 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 16:13:31 +02:00
Uwe Steinmann
89334c25d6 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 15:43:31 +02:00
Uwe Steinmann
bdee3da08e Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 15:39:03 +02:00
Uwe Steinmann
10dfc4d7b8 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 15:26:52 +02:00
Uwe Steinmann
bdd0dd6582 add saving and reloading layout data 2016-08-31 11:54:51 +02:00
Uwe Steinmann
84a65f0f32 implemented saving of layout data for workflows 2016-08-31 11:54:15 +02:00
Uwe Steinmann
2418675822 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 10:35:14 +02:00
Uwe Steinmann
d64747ddef add code for saving and redrawing layout 2016-08-31 10:11:46 +02:00
Uwe Steinmann
4d6ce5114a add operation for saving workflow layout (not ready yet) 2016-08-31 10:11:18 +02:00
Uwe Steinmann
9604a4548d add field layoutdata to tblWorkflows
will store the layout of a workflow for rendering a graph
2016-08-31 08:54:04 +02:00
Uwe Steinmann
c92a6fb413 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-31 08:46:30 +02:00
Uwe Steinmann
b646e4f9cf Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-30 13:36:09 +02:00
Uwe Steinmann
2a45854818 Merge tag '5.0.5' 2016-08-29 09:56:36 +02:00
Uwe Steinmann
a8fd2da7ea Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-25 17:10:01 +02:00
Uwe Steinmann
d4e6732eeb add entry for 5.1.1 2016-08-22 17:17:43 +02:00
Uwe Steinmann
169204173f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-22 17:16:41 +02:00
Uwe Steinmann
8b9d4b98d5 set parameter $plain for exitError() in case of an ajax call 2016-08-22 17:03:29 +02:00
Uwe Steinmann
58e52856b2 remove removeitem(), get $timeout from view in items() 2016-08-22 17:02:56 +02:00
Uwe Steinmann
3fbfadeebd add optional parameter $plain to exitError()
if set, the resulting html will only be a html fragment to be embedded
in a page
2016-08-22 17:01:53 +02:00
Uwe Steinmann
34ce80eb3d do not redirect if session ended and it is an ajax call 2016-08-22 17:00:52 +02:00
Uwe Steinmann
c8121afed1 make transmittal,document,version unique in tblTransmittalItem 2016-08-22 06:30:38 +02:00
Uwe Steinmann
a2bde8fd6b access check for AddToTransmittal 2016-08-22 06:29:50 +02:00
Uwe Steinmann
2d199cae8d use ajax for loading parts of page 2016-08-22 06:28:29 +02:00
Uwe Steinmann
cf6f8b952d add access check for MyDocuments, MyAccount, MyTransmittals 2016-08-22 06:26:34 +02:00
Uwe Steinmann
3e45e8cb10 add actions '[update|remove]transmittalitem' 2016-08-22 06:25:17 +02:00
Uwe Steinmann
b6907c6bc2 pass accessop to 'view', remove '[update|remove]transmittalitem'
'[update|remove]transmittalitem' is now in op/op.TransmittalMgr.php
2016-08-22 06:23:22 +02:00
Uwe Steinmann
38e75cf422 don't need accessop in show_form() 2016-08-16 07:08:31 +02:00
Uwe Steinmann
879ecea1e5 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-12 18:22:02 +02:00
Uwe Steinmann
3112078041 replace phrase when no review is needed 2016-08-12 18:16:19 +02:00
Uwe Steinmann
74f9a0209b add more access checks 2016-08-12 18:08:30 +02:00
Uwe Steinmann
224172f785 add access check 2016-08-12 15:57:47 +02:00
Uwe Steinmann
c56d026679 never needed 2016-08-12 15:01:10 +02:00
Uwe Steinmann
f2ffca8096 add role based access check 2016-08-12 15:00:12 +02:00
Uwe Steinmann
9a20306399 add access check for download of approval/review files 2016-08-12 14:59:46 +02:00
Uwe Steinmann
b90c9a379a major overhaul
do not show backup space required, if backup is stored in content
direcotry. Add various role based access checks.
2016-08-12 13:14:34 +02:00
Uwe Steinmann
bf7a63bf5a add more role based access checks 2016-08-12 12:43:21 +02:00
Uwe Steinmann
504cfe6d3e output a message if access to form() action was prohibited 2016-08-12 12:42:25 +02:00
Uwe Steinmann
4fa95bcd48 major overhaul, replace inProcess paramter by listtype
most list where not correct and the code was way to complicated
2016-08-12 12:41:07 +02:00
Uwe Steinmann
8126d6d3fe clean up parameters passed to getDocumentList() 2016-08-12 12:40:23 +02:00
Uwe Steinmann
d9d5c98c5f use documentListRow() for output 2016-08-11 22:57:53 +02:00
Uwe Steinmann
4266e426db add access check for download in documentListRow() 2016-08-11 22:56:56 +02:00
Uwe Steinmann
dc2edaca25 move more code into controller class 2016-08-11 22:56:12 +02:00
Uwe Steinmann
861776f9f0 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-11 16:42:00 +02:00
Uwe Steinmann
20f5bd6489 check for access on Download and ViewOnline 2016-08-11 13:25:27 +02:00
Uwe Steinmann
8916c83a8e check for access on op/op.Download.php in documentListRow() 2016-08-11 13:25:01 +02:00
Uwe Steinmann
17c9556337 remove left over from git merge conflict 2016-08-11 12:11:09 +02:00
Uwe Steinmann
c4401a45df don't show any links to op/op.Download.php and op/op.ViewOnline.php if access is prohibited 2016-08-11 12:05:36 +02:00
Uwe Steinmann
2e19ad3dcb check for access 2016-08-11 12:05:26 +02:00
Uwe Steinmann
40b84b89bd Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-10 22:26:24 +02:00
Uwe Steinmann
0cc0d0795e add link to timeline rss feed 2016-08-10 18:23:05 +02:00
Uwe Steinmann
889c82652b add entry for 5.1.1 2016-08-10 18:20:39 +02:00
Uwe Steinmann
073bdf24bb add rss feed of timeline 2016-08-10 18:16:39 +02:00
Uwe Steinmann
eebb3e996d Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-10 17:53:12 +02:00
Uwe Steinmann
739b6fb9a9 use documentListRow() in all lists 2016-08-09 17:16:04 +02:00
Uwe Steinmann
f397558f75 set proper default value for orderdir 2016-08-09 17:15:41 +02:00
Uwe Steinmann
31fd01cc71 pass timeout to view 2016-08-09 17:15:26 +02:00
Uwe Steinmann
eb2f3c7148 AppRevOwner list can ordered by passed parameter 2016-08-09 17:14:57 +02:00
Uwe Steinmann
71e0fd36ad take out links to different doc lists in mydocument menu
all lists are now on the start page of MyDocuments
2016-08-09 15:16:20 +02:00
Uwe Steinmann
a87ae68c24 put list of all documents onto page with all other doc lists 2016-08-09 15:15:47 +02:00
Uwe Steinmann
8165ee4776 remove opacity for badge 2016-08-09 15:15:00 +02:00
Uwe Steinmann
eef3b28270 getDocumentList() accepts parameter for direction of order 2016-08-09 15:14:17 +02:00
Uwe Steinmann
148088f42a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-09 07:55:52 +02:00
Uwe Steinmann
71e7d6f3e6 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-09 06:31:50 +02:00
Uwe Steinmann
43016dcbc1 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-08 20:31:01 +02:00
Uwe Steinmann
d2e959e32e add command to set sql_mode as default by Ubuntu 16.04 (not active) 2016-08-08 20:28:35 +02:00
Uwe Steinmann
229b7e874f set pwdExpiration to 'keep' instead of ''
set '' as value for never
2016-08-08 20:21:30 +02:00
Uwe Steinmann
dac9c7b37f check also for '' in pwdExpiration 2016-08-08 12:57:07 +02:00
Uwe Steinmann
83dcd9da7b do not use '0000-00-00 00:00:00' as date anymore
use NULL instead because '0000-00-00 00:00:00' in certain sql_modes
2016-08-08 12:49:59 +02:00
Uwe Steinmann
b3ec207213 do not set datetime to '0000-00-00 00:00:00' by default
depending in the sql mode in mysql this is is not allowed
2016-08-08 12:43:06 +02:00
Uwe Steinmann
9f79586017 add entry for 5.1.1 2016-08-03 14:49:22 +02:00
Uwe Steinmann
0fb14d4c6a more similar look of documents list 2016-08-03 14:47:06 +02:00
Uwe Steinmann
624a96ddde Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-03 12:33:19 +02:00
Uwe Steinmann
138a6ce408 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-03 09:30:53 +02:00
Uwe Steinmann
3c6bd6bf6f check for su by regular user, call service hooks 2016-08-02 13:37:04 +02:00
Uwe Steinmann
1cf7516cc3 add entry for 5.1.1 2016-08-02 11:52:14 +02:00
Uwe Steinmann
45fd0bf934 set timeout of mytasks ajax call to 1000ms 2016-08-02 11:49:52 +02:00
Uwe Steinmann
5adaf41288 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-08-02 11:34:17 +02:00
Uwe Steinmann
6097b7b9a9 add dummy note 2016-08-02 11:29:48 +02:00
Uwe Steinmann
f7e6a25a50 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-29 08:01:19 +02:00
Uwe Steinmann
dd1310871f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-28 08:07:10 +02:00
Uwe Steinmann
d5360b9342 add changelog for 5.1.0 and 5.1.1 2016-07-28 06:48:55 +02:00
Uwe Steinmann
13c3e15b4f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-27 21:10:42 +02:00
Uwe Steinmann
8410ca9273 add spinner when initially loading content by ajax call 2016-07-27 21:02:49 +02:00
Uwe Steinmann
76e8d25f87 add style for sidebar 2016-07-27 21:02:30 +02:00
Uwe Steinmann
0434caa89a add side menu for selecting list 2016-07-27 21:02:02 +02:00
Uwe Steinmann
8a50145932 should not be in branch 5.1.x 2016-07-27 08:00:58 +02:00
Uwe Steinmann
53296bb330 add database changes for 5.2.0 2016-07-26 18:46:47 +02:00
Uwe Steinmann
b717e0bafd set version to 5.1.0 2016-07-19 11:08:03 +02:00
Uwe Steinmann
5f76b170b5 add '' as secret to insert into tblUsers statement 2016-07-19 08:01:14 +02:00
Uwe Steinmann
e384966172 fix errors in sql statements 2016-07-19 08:00:54 +02:00
Uwe Steinmann
b49790f48a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-14 07:02:07 +02:00
Uwe Steinmann
9eb10d06b8 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-12 17:49:44 +02:00
Uwe Steinmann
65ec97c2ac show 2-fact-auth qrcode 2016-07-12 17:46:08 +02:00
Uwe Steinmann
4230df3c88 add input field for 2-fact-auth code 2016-07-12 17:44:56 +02:00
Uwe Steinmann
420586ea0a add out/out.Setup2Factor.php to menu 2016-07-12 17:43:51 +02:00
Uwe Steinmann
e68a7b82b3 pass enable2fact to view 2016-07-12 17:43:27 +02:00
Uwe Steinmann
b5b9a5eac3 check code from google authenticator 2016-07-12 17:42:39 +02:00
Uwe Steinmann
b8b1996fb4 redirekt to out/out.Setup2Auth.php if 2-fact-auth isn't setup
make sure user has not been substituted for setting up 2-fact-auth
or password change
2016-07-12 17:40:54 +02:00
Uwe Steinmann
2bc217b156 add files for 2 factor authentication 2016-07-12 17:39:10 +02:00
Uwe Steinmann
5e5951880f Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-06 22:27:34 +02:00
Uwe Steinmann
7f9f118fba add qrcode and secret for 2-factor auth 2016-07-06 22:26:23 +02:00
Uwe Steinmann
4d7f228a4c add field secret to tblUsers 2016-07-06 22:25:59 +02:00
Uwe Steinmann
825ef2898b add enable2FactorAuthentication 2016-07-06 22:25:43 +02:00
Uwe Steinmann
303a114178 add field 'secret' for secret of 2-factor auth 2016-07-06 22:24:50 +02:00
Uwe Steinmann
3922d1706a Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-06 13:35:31 +02:00
Uwe Steinmann
d064d24903 include ../inc/inc.ClassAccessOperation.php 2016-07-06 13:00:30 +02:00
Uwe Steinmann
a8c8dbf535 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-07-06 12:57:13 +02:00
Uwe Steinmann
cb059d53eb Merge branch 'seeddms-5.0.x' 2016-07-06 12:52:35 +02:00
Uwe Steinmann
97d471bce1 Merge branch 'seeddms-5.0.x' into develop 2016-05-30 20:45:00 +02:00
Uwe Steinmann
1544912dbc fix access checking 2016-05-30 20:41:36 +02:00
Uwe Steinmann
21b053cd0d propperly get enableAcknowledgeWorkflow and enableRevisionWorkflow 2016-05-30 20:34:29 +02:00
Uwe Steinmann
50a837a05d check if $settings->_converters['preview'] is set 2016-05-30 20:34:14 +02:00
Uwe Steinmann
95b332586c add initial roles 2016-05-30 20:24:49 +02:00
Uwe Steinmann
86d775ff84 Merge branch 'develop' into seeddms-5.1.x 2016-05-30 19:30:57 +02:00
Uwe Steinmann
de793abb7b use SeedDMS_Core_Attribute->validate() 2016-05-30 19:26:19 +02:00
Uwe Steinmann
21c1d1b7b9 check for min values of attribute 2016-05-30 19:25:55 +02:00
Uwe Steinmann
4fe01ebbfd take out old code 2016-05-30 19:25:27 +02:00
Uwe Steinmann
a32a5c929a treat empty attribute value as no value in validate() 2016-05-30 19:24:43 +02:00
Uwe Steinmann
62695fba33 Merge branch 'develop' into seeddms-5.1.x 2016-05-30 11:21:00 +02:00
Uwe Steinmann
44dbf74c57 Merge branch 'seeddms-5.0.x' into develop 2016-05-30 11:20:47 +02:00
Uwe Steinmann
6ab00875a9 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-05-23 14:05:44 +02:00
Uwe Steinmann
b7a6bb2201 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-05-23 13:59:16 +02:00
Uwe Steinmann
e7b307f6fd Merge branch 'seeddms-5.0.x' into develop 2016-05-23 13:59:09 +02:00
Uwe Steinmann
1b0a972cdd set notes for 5.1.1 2016-05-23 13:43:18 +02:00
Uwe Steinmann
d159432181 Merge branch 'develop' into seeddms-5.1.x 2016-05-23 12:33:40 +02:00
Uwe Steinmann
20476876ac Merge branch 'seeddms-5.0.x' into develop 2016-05-23 12:32:18 +02:00
Uwe Steinmann
6380e028fa Merge branch 'seeddms-5.0.x' into develop 2016-05-03 07:09:26 +02:00
Uwe Steinmann
38f02a149e Merge branch 'seeddms-5.0.x' into develop 2016-05-03 06:40:50 +02:00
Uwe Steinmann
979b15a8fa set $accessop from view 2016-05-02 07:47:29 +02:00
Uwe Steinmann
8a4948085a Merge branch 'seeddms-5.0.x' into develop 2016-04-28 12:24:47 +02:00
Uwe Steinmann
51ca23085a fix some html markup 2016-04-26 18:16:24 +02:00
Uwe Steinmann
99e52d68f4 check if version is accessible
don't use the latest version but the version that needs to be reviewed,
approved, revised, ...
2016-04-26 18:15:06 +02:00
Uwe Steinmann
6b2d4a4b75 set dms in view early, check for access on latest content 2016-04-26 18:14:38 +02:00
Uwe Steinmann
f87a3ce570 fix line indenting 2016-04-26 18:14:12 +02:00
Uwe Steinmann
ad95fdecd9 add comment the getAccessMode() doesn't work in any case 2016-04-26 18:12:36 +02:00
Uwe Steinmann
44bd7fda79 Merge branch 'seeddms-5.0.x' 2016-04-22 17:24:34 +02:00
Uwe Steinmann
6930202349 Merge branch 'develop' into seeddms-5.1.x 2016-04-22 12:59:04 +02:00
Uwe Steinmann
92ab26d547 call hook extraDownloadHeader 2016-04-22 12:58:28 +02:00
Uwe Steinmann
35d7a70ade header for additional columns can be set 2016-04-22 12:57:39 +02:00
Uwe Steinmann
b4e2224c3e Merge branch 'seeddms-5.0.x' into develop 2016-04-22 12:39:41 +02:00
Uwe Steinmann
281c4baeb3 some reorganization of code 2016-04-22 12:30:02 +02:00
Uwe Steinmann
e97b94d393 Merge branch 'seeddms-5.0.x' into develop 2016-04-22 12:28:57 +02:00
Uwe Steinmann
c6121ff201 do not issue an error if access on library folder is forbitten
just disable the upload from the library folder
2016-04-22 12:25:26 +02:00
Uwe Steinmann
1d01338e49 Merge branch 'develop' into seeddms-5.1.x 2016-04-22 09:06:01 +02:00
Uwe Steinmann
8a47cdd1da Merge branch 'seeddms-5.0.x' into develop 2016-04-22 08:31:57 +02:00
Uwe Steinmann
0d3ff8a2d4 add access check for action 'form', no need to check for admin 2016-04-22 08:23:37 +02:00
Uwe Steinmann
7e3535ad1a add more access checks for actions 'info' and 'form' 2016-04-22 08:23:15 +02:00
Uwe Steinmann
088a146888 add more access checks, fixed html 2016-04-22 08:22:50 +02:00
Uwe Steinmann
bc6f641eb3 add more access checks for action 'info' and 'form' 2016-04-22 08:22:19 +02:00
Uwe Steinmann
d63b36f3bf no need to check explicitly for admin, check_view_access() is enough 2016-04-22 08:21:44 +02:00
Uwe Steinmann
e1926ed217 add more documentation 2016-04-22 08:21:18 +02:00
Uwe Steinmann
823e7bf76e better handling of access rights if advanced access rights are turn off
check_view_access() returns true for admins and false otherwise
2016-04-21 17:19:58 +02:00
Uwe Steinmann
cc685141e9 fix wrong variable name 2016-04-21 17:19:28 +02:00
Uwe Steinmann
b28153d8f9 Merge branch 'develop' into seeddms-5.1.x 2016-04-21 16:02:07 +02:00
Uwe Steinmann
d0ef7f4238 convert to bootstrap 2016-04-21 16:01:38 +02:00
Uwe Steinmann
35c8e57633 don't drop old table tblUsers, just rename it
dropping it, always issues an error 'database locked'
2016-04-21 16:00:46 +02:00
Uwe Steinmann
037646537b set version to 5.1.0, use btn instead of plain link 2016-04-21 16:00:16 +02:00
Uwe Steinmann
20c0abf69d add missing attribute 'target' to converters
this needs to be done when updating from 5.0.x to 5.1.x
2016-04-21 15:33:57 +02:00
Uwe Steinmann
358b0701a4 Merge branch 'develop' into seeddms-5.1.x 2016-04-21 14:22:55 +02:00
Uwe Steinmann
a18fd1d5c9 Merge branch 'seeddms-5.0.x' into develop 2016-04-21 14:22:47 +02:00
Uwe Steinmann
24c7c0a076 Merge branch 'develop' into seeddms-5.1.x 2016-04-21 13:48:20 +02:00
Uwe Steinmann
531cfbea29 Merge branch 'seeddms-5.0.x' into develop 2016-04-21 13:48:03 +02:00
Uwe Steinmann
aee1ff2fcb inform notifier of new document too 2016-04-21 13:32:37 +02:00
Uwe Steinmann
c137d28da5 Merge branch 'seeddms-5.0.x' into develop 2016-04-20 18:12:37 +02:00
Uwe Steinmann
e22f0e2065 use html_link() instead of plain html 2016-04-20 18:09:36 +02:00
Uwe Steinmann
8a08cc3bff check_view_access() returns true if advanced access is turned off 2016-04-20 18:09:05 +02:00
Uwe Steinmann
ea4d3d782c add parameter to html_link() for turning access check off 2016-04-20 18:08:24 +02:00
Uwe Steinmann
ae1bbffc64 fix link to out.EditOnline.php and out.RemoveVersion.php 2016-04-20 15:46:36 +02:00
Uwe Steinmann
9999f6d57c include missing files, set accessobject for view 2016-04-20 15:45:53 +02:00
Uwe Steinmann
c14aaf02a6 Merge branch 'develop' into seeddms-5.1.x 2016-04-20 09:05:13 +02:00
Uwe Steinmann
dccb4c476a use html_url() for image 2016-04-20 09:03:15 +02:00
Uwe Steinmann
7ed8801f46 user html_url() and html_link() 2016-04-20 09:02:57 +02:00
Uwe Steinmann
ae3c5faef5 use html_link() 2016-04-20 09:02:30 +02:00
Uwe Steinmann
5912354f09 set accessobject in view 2016-04-20 09:01:59 +02:00
Uwe Steinmann
4590a14de1 fix html_link(), link attributes can't be added 2016-04-20 09:01:20 +02:00
Uwe Steinmann
6ad8c5a10f Merge branch 'develop' into seeddms-5.1.x 2016-04-18 20:56:09 +02:00
Uwe Steinmann
8d8f3e51fb move excel export into view 2016-04-18 20:53:00 +02:00
Uwe Steinmann
8c77b0734c add hook to set extra columns, fix column counting if approval or review does not exists 2016-04-18 20:51:32 +02:00
Uwe Steinmann
2188babab8 move js from html into dynamic js file 2016-04-18 13:21:56 +02:00
Uwe Steinmann
4e2313d387 pass instance of Access Operation to view 2016-04-18 13:13:16 +02:00
Uwe Steinmann
4f70b6822b fix typo 2016-04-15 15:16:07 +02:00
Uwe Steinmann
9a44f8439e Merge branch 'develop' into seeddms-5.1.x 2016-04-15 13:22:33 +02:00
Uwe Steinmann
f8adb0cecf show previews were possible, pass accessobject to view 2016-04-15 13:20:56 +02:00
Uwe Steinmann
fcfce2d68d Merge branch 'develop' into seeddms-5.1.x 2016-04-13 18:43:25 +02:00
Uwe Steinmann
28dc4d32ad check access rights 2016-04-13 18:42:58 +02:00
Uwe Steinmann
b30aee4314 Merge branch 'develop' into seeddms-5.1.x 2016-04-13 18:32:27 +02:00
Uwe Steinmann
8723151361 check for access rights on controller actions 2016-04-13 18:31:42 +02:00
Uwe Steinmann
7e24402671 place code into controller 2016-04-13 18:31:28 +02:00
Uwe Steinmann
caf1501c89 add mehtod __invoke() 2016-04-13 18:30:54 +02:00
Uwe Steinmann
94682fb0ff copy code from check_view_access() to check_controller_access() 2016-04-13 18:29:58 +02:00
Uwe Steinmann
b80cb91d54 check if parameter of setNoAccess() is set before using it 2016-04-13 18:29:21 +02:00
Uwe Steinmann
76beca23c6 Merge branch 'seeddms-5.0.x' into develop 2016-04-13 10:55:38 +02:00
Uwe Steinmann
e96e94d471 use translated strings 2016-04-13 10:54:12 +02:00
Uwe Steinmann
64470891ba set accessobject for view 2016-04-13 10:53:57 +02:00
Uwe Steinmann
a3e0f6eb7d fix inclusion of files 2016-04-13 08:56:51 +02:00
Uwe Steinmann
0dba3d5300 Merge branch 'seeddms-5.0.x' into develop 2016-04-13 08:53:12 +02:00
Uwe Steinmann
46b36ba7e5 check for access on RemoveUser 2016-04-13 08:51:57 +02:00
Uwe Steinmann
46602c744b check for access on RemoveGroup 2016-04-13 08:51:34 +02:00
Uwe Steinmann
e527a6d176 fix access check and add new debug menu item 2016-04-13 08:51:03 +02:00
Uwe Steinmann
23e3011d82 use access check 2016-04-13 08:50:27 +02:00
Uwe Steinmann
4c15aa7c49 check_access() doesn't check for admin anymore
check_view_access() does it now
2016-04-13 08:49:32 +02:00
Uwe Steinmann
e22ca653ed check_view_access() returns true/false and also takes admin role into account 2016-04-13 08:48:23 +02:00
Uwe Steinmann
d2b2bd0226 check() returns true/false again 2016-04-13 08:47:33 +02:00
Uwe Steinmann
daa4066c04 show access restrictions for all role types except admin 2016-04-12 17:22:04 +02:00
Uwe Steinmann
bb25509fd6 Merge branch 'develop' into seeddms-5.1.x 2016-04-12 15:30:41 +02:00
Uwe Steinmann
f7118a6ac3 fix notes of 1.1.8 2016-04-12 15:30:19 +02:00
Uwe Steinmann
1a35ef9cc3 Merge branch 'develop' into seeddms-5.1.x 2016-04-12 15:27:51 +02:00
Uwe Steinmann
ece56944d8 add new field noAccess in tblRoles 2016-04-12 12:23:57 +02:00
Uwe Steinmann
5bdc6fe3cc filter result by new access restrictions derived from status 2016-04-12 12:23:26 +02:00
Uwe Steinmann
795eb1e028 manage access restrictions 2016-04-12 12:23:04 +02:00
Uwe Steinmann
6278dd8df3 set access restrictions by role 2016-04-12 12:22:36 +02:00
Uwe Steinmann
0511d06d63 add field for access restrictions by document status 2016-04-12 12:21:55 +02:00
Uwe Steinmann
7a84ffee5e fix typo in description of extension 2016-04-12 09:17:35 +02:00
Uwe Steinmann
cdf78c0f4c Merge branch 'develop' into seeddms-5.1.x 2016-04-12 08:52:33 +02:00
Uwe Steinmann
41fa410010 Merge branch 'seeddms-5.0.x' into develop 2016-04-12 08:52:17 +02:00
Uwe Steinmann
50cf128471 replace phrase 'type' with 'role_type' 2016-04-12 08:48:12 +02:00
Uwe Steinmann
4ea8b141da Merge branch 'seeddms-5.0.x' into develop 2016-04-12 08:30:45 +02:00
Uwe Steinmann
3654906e9a set $dms->noReadForStatus (still commented out) 2016-04-12 07:56:53 +02:00
Uwe Steinmann
fb73b9c922 get $user from view in mainMenu() 2016-04-12 07:55:15 +02:00
Uwe Steinmann
be8be01ed5 check if getLatestContent() returns a version 2016-04-12 07:54:22 +02:00
Uwe Steinmann
130c894a35 check if version is accessible
all functions which return a document version (e.g. getLatestVersion())
will check if access has been restricted by setting
SeedDMS_Core_DMS::noReadForStatus
2016-04-12 07:46:37 +02:00
Uwe Steinmann
9786a51822 add variable noReadForStatus, method getLoggedInUser
setting noReadForStatus will allow to check if a version may
be accessible in its status
2016-04-12 07:44:48 +02:00
Uwe Steinmann
5224cbb9c6 Merge branch 'seeddms-5.0.x' into develop 2016-04-08 15:59:10 +02:00
Uwe Steinmann
0a87820f9a SeedDMS_Core_DocumentContent::getAccessMode() takes status into account 2016-04-08 15:10:43 +02:00
Uwe Steinmann
2caa65add6 replace phrase 'role' by 'type' 2016-04-08 12:54:25 +02:00
Uwe Steinmann
3a0d9526f7 Merge branch 'develop' into seeddms-5.1.x 2016-04-07 19:36:32 +02:00
Uwe Steinmann
cac1387d24 Merge branch 'seeddms-5.0.x' into develop 2016-04-07 19:36:23 +02:00
Uwe Steinmann
e3bc75da15 check for $_POST["grpIndApprovers"] and $_POST["grpIndReviewers"] 2016-04-07 19:34:42 +02:00
Uwe Steinmann
ba23fa9073 fix take over reviewers/approvers from last version, add field for members of a group 2016-04-07 19:33:49 +02:00
Uwe Steinmann
8722b87727 Merge branch 'develop' into seeddms-5.1.x 2016-04-07 08:38:27 +02:00
Uwe Steinmann
c86616b971 Merge branch 'seeddms-5.0.x' into develop 2016-04-07 08:38:05 +02:00
Uwe Steinmann
552c3b4d98 Merge branch 'seeddms-5.0.x' into develop 2016-04-05 10:05:05 +02:00
Uwe Steinmann
688244c87b Merge branch 'develop' into seeddms-5.1.x 2016-04-04 15:09:59 +02:00
Uwe Steinmann
ce905f3144 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-04-04 14:32:02 +02:00
Uwe Steinmann
b2b3975b70 Merge branch 'seeddms-5.0.x' into develop 2016-04-04 12:21:19 +02:00
Uwe Steinmann
8139bebb6a add new tables Aros, Acos, ArosAcos to update script 2016-03-31 11:34:00 +02:00
Uwe Steinmann
263ec73451 Merge branch 'develop' into seeddms-5.1.x 2016-03-31 11:19:49 +02:00
Uwe Steinmann
7d50c6e69d Merge branch 'seeddms-5.0.x' into develop 2016-03-31 11:19:36 +02:00
Uwe Steinmann
8b04957820 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2016-03-31 11:19:08 +02:00
Uwe Steinmann
5f54964d69 Merge branch 'seeddms-5.0.x' 2016-03-25 17:13:27 +01:00
Uwe Steinmann
267734e866 set missing variable from view 2016-03-24 15:59:24 +01:00
Uwe Steinmann
9fec5fd1c0 use right translation phrase 2016-03-24 15:57:10 +01:00
Uwe Steinmann
50490ce808 Merge branch 'seeddms-5.0.x' into develop 2016-03-24 15:48:53 +01:00
Uwe Steinmann
cc1c4081bc select user even in status S_LOG_ACCEPTED or S_LOG_REJECTED 2016-03-24 15:43:00 +01:00
Uwe Steinmann
ced19968aa output progressbar for receipt status 2016-03-24 15:42:18 +01:00
Uwe Steinmann
5a43b8f9f4 fix header 2016-03-24 15:41:54 +01:00
Uwe Steinmann
fe8e1d2b52 proper check of return value of setStatus() 2016-03-24 15:41:23 +01:00
Uwe Steinmann
f5db1b66cb setStatus will not fail if status is unchanged, finishRevision() will no longer set state waіting 2016-03-24 15:40:25 +01:00
Uwe Steinmann
50a39d439a revisors may not be set unless document is release or in revision 2016-03-23 17:56:34 +01:00
Uwe Steinmann
6deefda545 use $newdocstatus instead of $newStatus 2016-03-23 17:33:04 +01:00
Uwe Steinmann
3e05cfe24f fix call of SeedDMS_AccessOperation() 2016-03-23 16:54:25 +01:00
Uwe Steinmann
353be72dc9 pass $document to mayApprove() 2016-03-23 16:54:03 +01:00
Uwe Steinmann
50cfb869e2 pass $document to mayEditVersion() 2016-03-23 16:53:32 +01:00
Uwe Steinmann
a693233150 make mayEditVersion() work again 2016-03-23 16:53:01 +01:00
Uwe Steinmann
c7836aabfe check if $selrole is set 2016-03-23 16:27:56 +01:00
Uwe Steinmann
8d5e6d9d14 fix propper div wrapping 2016-03-23 15:47:53 +01:00
Uwe Steinmann
c947f92a73 check for guest based on role 2016-03-23 12:40:09 +01:00
Uwe Steinmann
8b1effc2f3 Merge branch 'seeddms-5.0.x' into develop 2016-03-23 12:36:47 +01:00
Uwe Steinmann
e72e7f3f15 Merge branch 'seeddms-5.0.x' into develop 2016-03-22 15:22:19 +01:00
Uwe Steinmann
3ed43f3f09 Merge branch 'seeddms-5.0.x' into develop 2016-03-21 08:34:20 +01:00
Uwe Steinmann
14b30ce48f do not call checkForm() if document wasn't modified 2016-03-21 07:46:55 +01:00
Uwe Steinmann
f2b091cb83 Merge branch 'seeddms-5.0.x' into develop 2016-03-21 07:41:30 +01:00
Uwe Steinmann
ba47fededd Merge branch 'seeddms-5.0.x' into develop 2016-03-21 06:43:17 +01:00
Uwe Steinmann
84e010bdf7 add missing contentEnd() 2016-03-21 06:42:27 +01:00
Uwe Steinmann
2fa5946bc5 fix syntax error 2016-03-21 06:40:40 +01:00
Uwe Steinmann
f2c239f67c place all javascript into function js() 2016-03-21 06:22:01 +01:00
Uwe Steinmann
59786c7bb0 add missing contendEnd() 2016-03-21 06:20:19 +01:00
Uwe Steinmann
1cd5622ca0 add missing space 2016-03-18 22:48:45 +01:00
Uwe Steinmann
b8fc40f60f fix access check 2016-03-18 22:48:13 +01:00
Uwe Steinmann
d8e0ba840d fix syntax error 2016-03-18 22:47:51 +01:00
Uwe Steinmann
66da520835 add removal of transmittal 2016-03-18 22:47:28 +01:00
Uwe Steinmann
19793e41b9 add remove() 2016-03-18 22:47:15 +01:00
Uwe Steinmann
00ed4c5743 Merge branch 'seeddms-5.0.x' into develop 2016-03-18 17:13:27 +01:00
Uwe Steinmann
c3f9abea0e Merge branch 'seeddms-5.0.x' into develop 2016-03-18 17:05:58 +01:00
Uwe Steinmann
4dcd92b528 convert to new method of view invocation 2016-03-18 16:52:04 +01:00
Uwe Steinmann
601f32fc00 Merge branch 'seeddms-5.0.x' into develop 2016-03-18 16:40:46 +01:00
Uwe Steinmann
a7a9bc72a2 get $libraryfolder from view in js() 2016-03-18 16:38:36 +01:00
Uwe Steinmann
4a85977874 separate js from html for document chooser 2016-03-18 16:25:07 +01:00
Uwe Steinmann
361b63256f Merge branch 'seeddms-5.0.x' into develop 2016-03-18 16:17:17 +01:00
Uwe Steinmann
7bd77ba43e Merge branch 'seeddms-5.0.x' into develop 2016-03-15 08:50:32 +01:00
Uwe Steinmann
c5435e0a27 add acl check 2016-03-15 06:22:48 +01:00
Uwe Steinmann
3f6420a6d4 Merge branch 'seeddms-5.0.x' into develop 2016-03-14 18:20:03 +01:00
Uwe Steinmann
d317388d18 Merge branch 'seeddms-5.0.x' into develop 2016-03-09 08:10:15 +01:00
Uwe Steinmann
5139efd4d7 Merge branch 'develop' into seeddms-5.1.x 2016-03-09 06:46:55 +01:00
Uwe Steinmann
f859b48a57 Merge branch 'seeddms-5.0.x' into develop 2016-03-09 06:42:30 +01:00
Uwe Steinmann
4e32ce086e Merge branch 'develop' into seeddms-5.1.x 2016-03-08 10:46:34 +01:00
Uwe Steinmann
aca3db06c2 Merge branch 'seeddms-5.0.x' into develop 2016-03-08 10:46:16 +01:00
Uwe Steinmann
4bd2a9f766 Merge branch 'seeddms-5.0.x' into develop 2016-03-08 07:00:09 +01:00
Uwe Steinmann
51d0078e26 Merge branch 'seeddms-5.0.x' into develop 2016-03-07 08:16:40 +01:00
Uwe Steinmann
1578b12cf9 add access check (still commented out) 2016-03-04 16:02:59 +01:00
Uwe Steinmann
64c0b37726 add access check 2016-03-04 16:02:03 +01:00
Uwe Steinmann
535012f844 add column with role 2016-03-04 16:01:40 +01:00
Uwe Steinmann
85ac4314f5 check if SeedDMS_Aco::getRoot() returns objects 2016-03-04 15:45:59 +01:00
Uwe Steinmann
1f9aa108a4 set parameter class 2016-03-04 15:45:28 +01:00
Uwe Steinmann
8e606dac8b order objects by alias 2016-03-04 15:45:10 +01:00
Uwe Steinmann
04eadaad67 add check_controller_access() 2016-03-04 15:44:11 +01:00
Uwe Steinmann
dcc3d9e74c take out debug output 2016-03-04 12:59:56 +01:00
Uwe Steinmann
4770608d8f include inc.ClassAccessOperation.php 2016-03-04 09:40:49 +01:00
Uwe Steinmann
82ac006a13 add many access checks before showing a link 2016-03-04 09:40:08 +01:00
Uwe Steinmann
06346b956c check access for action info 2016-03-04 09:39:22 +01:00
Uwe Steinmann
795f03f8b8 add column with role 2016-03-04 09:38:37 +01:00
Uwe Steinmann
304a5d804e use same user list as for Acl manager 2016-03-04 09:38:01 +01:00
Uwe Steinmann
1175f6f9c5 list all users with the selected role 2016-03-04 09:36:44 +01:00
Uwe Steinmann
e4bc8d2180 add advanced access check 2016-03-04 09:36:08 +01:00
Uwe Steinmann
a3df77e713 take out access check 2016-03-04 09:35:27 +01:00
Uwe Steinmann
0909d43bcf minor code cleanup 2016-03-04 09:34:47 +01:00
Uwe Steinmann
31017fee9d fix php error 2016-03-04 09:33:15 +01:00
Uwe Steinmann
6826e69795 add function for creating links, urls, and check access 2016-03-04 09:28:37 +01:00
Uwe Steinmann
bd3fbd5cf7 cache aro, first param of check_view_access() can be string, array, object 2016-03-04 09:27:29 +01:00
Uwe Steinmann
1fe2b3bdc2 some code clean up, change varialbe dms to _dms 2016-03-04 09:26:27 +01:00
Uwe Steinmann
f84c8eedd2 add parameter to turn off/on advanced acl 2016-03-04 09:25:18 +01:00
Uwe Steinmann
42e168a1fc pass object of role to constructor in getAllInstances() 2016-03-04 09:23:55 +01:00
Uwe Steinmann
51fa5d18e6 enhance AccessOperation by check_view_access()
all methods in SeedDMS_AccessOperation take the object to be checked
as the first parameter. Add new method check_view_access() which
checks if a view may be accessed based on the tables tblAros, tblAcos,
tblArosAcos
2016-03-03 07:39:04 +01:00
Uwe Steinmann
8985748f8a use new instanciation of view 2016-03-03 07:37:26 +01:00
Uwe Steinmann
e089cc898c add button for adding missing aro 2016-03-03 07:08:42 +01:00
Uwe Steinmann
c987412482 set propper messages, add missing commands 2016-03-03 07:06:10 +01:00
Uwe Steinmann
bae1386c58 add phrases for new access control 2016-03-03 07:05:09 +01:00
Uwe Steinmann
839ae0b1df many improvements 2016-03-03 07:04:36 +01:00
Uwe Steinmann
e6966ae841 controller for setting permissions 2016-02-29 16:32:32 +01:00
Uwe Steinmann
8f7a84e495 complete acos and aros 2016-02-29 16:24:55 +01:00
Uwe Steinmann
a8d615071e minor style changes, set propper url to modify permissions 2016-02-29 14:07:44 +01:00
Uwe Steinmann
b19f306bbf add more methods 2016-02-29 14:07:20 +01:00
Uwe Steinmann
677534c8ec add files for managing access control lists 2016-02-29 11:18:55 +01:00
Uwe Steinmann
ce57466695 Merge branch 'seeddms-5.0.x' into develop 2016-02-29 08:43:31 +01:00
Uwe Steinmann
a213a6a0cd various new methods 2016-02-29 08:31:19 +01:00
Uwe Steinmann
920d850915 set format of date fields 2016-02-27 08:44:20 +01:00
Uwe Steinmann
2a727b6204 Merge branch 'develop' into seeddms-5.1.x 2016-02-26 09:22:49 +01:00
Uwe Steinmann
5f610c4049 Merge branch 'seeddms-5.0.x' into develop 2016-02-26 09:22:25 +01:00
Uwe Steinmann
8d1dc66c59 Merge branch 'develop' into seeddms-5.1.x 2016-02-26 09:08:32 +01:00
Uwe Steinmann
206983cffd Merge branch 'seeddms-5.0.x' into develop 2016-02-26 09:08:17 +01:00
Uwe Steinmann
21c7068341 Merge branch 'seeddms-5.0.x' into develop 2016-02-25 10:57:27 +01:00
Uwe Steinmann
b3426ec6eb Merge branch 'develop' into seeddms-5.1.x 2016-02-25 10:43:51 +01:00
Uwe Steinmann
7099dc6d73 set $openfilterdlg before accordion for export 2016-02-25 10:43:14 +01:00
Uwe Steinmann
3b18b4398c fix name of view parameter previewwidthdetail 2016-02-25 10:33:41 +01:00
Uwe Steinmann
72ce140895 fix creation of aro 2016-02-25 10:16:40 +01:00
Uwe Steinmann
fcd4b23710 add button for role management 2016-02-24 14:58:27 +01:00
Uwe Steinmann
489f464163 add link to role management in menu 2016-02-24 14:44:58 +01:00
Uwe Steinmann
2721a43dde Merge branch 'develop' into seeddms-5.1.x 2016-02-24 14:43:10 +01:00
Uwe Steinmann
724dfd45e6 Merge branch 'seeddms-5.0.x' into develop 2016-02-24 14:40:41 +01:00
Uwe Steinmann
e759b44d37 include inc.ClassAcl.php 2016-02-24 14:38:28 +01:00
Uwe Steinmann
fb95d8f5ed add class to handle access controll 2016-02-24 14:37:49 +01:00
Uwe Steinmann
3d76792239 add management of roles 2016-02-24 14:36:59 +01:00
Uwe Steinmann
49be0485c5 role is now an instance of SeedDMD_Core_Role 2016-02-24 14:35:37 +01:00
Uwe Steinmann
ee7180ccd3 role is now an object of class SeedDMD_Core_Role 2016-02-24 14:34:58 +01:00
Uwe Steinmann
4c3e45ee02 add tables and updates for roles 2016-02-24 14:34:30 +01:00
Uwe Steinmann
480aca1c80 add roles 2016-02-24 14:32:55 +01:00
Uwe Steinmann
3dc3b6f0d2 Merge branch 'seeddms-5.0.x' 2016-02-22 15:20:24 +01:00
Uwe Steinmann
f41210f2d7 new version 5.1.0 2016-02-22 14:18:42 +01:00
Uwe Steinmann
91db603a89 next version will be 5.1.0 2016-02-22 14:03:23 +01:00
Uwe Steinmann
7b251fb419 Merge branch 'seeddms-5.0.x' into develop 2016-02-22 11:49:08 +01:00
Uwe Steinmann
0e5e09dbbf fix logout if not admin 2016-02-19 08:21:22 +01:00
Uwe Steinmann
d4e28ec735 get timeout from view 2016-02-19 08:04:45 +01:00
Uwe Steinmann
aa836a8954 fix syntax error 2016-02-18 20:35:56 +01:00
Uwe Steinmann
bd7868cfc7 Merge branch 'seeddms-5.0.x' into develop 2016-02-18 20:35:11 +01:00
Uwe Steinmann
314906adf3 fix document chooser 2016-02-17 11:56:00 +01:00
Uwe Steinmann
067890345e Merge branch 'seeddms-5.0.x' into develop 2016-02-17 11:44:25 +01:00
Uwe Steinmann
3907431369 split printFolderChooser() for library folder into js and html part 2016-02-17 11:35:42 +01:00
Uwe Steinmann
179af06438 split printFolderChooser() for home folder into js and html 2016-02-17 11:35:01 +01:00
Uwe Steinmann
ee613233db add missing arguments to printDocumentChooser() 2016-02-17 11:12:19 +01:00
Uwe Steinmann
01c03f33f9 Merge branch 'seeddms-5.0.x' into develop 2016-02-16 12:19:26 +01:00
Uwe Steinmann
bc608eff07 Merge branch 'seeddms-5.0.x' into develop 2016-02-15 20:45:05 +01:00
Uwe Steinmann
6c7648b75a use getDocumentList() instead of plain sql 2016-02-10 13:34:25 +01:00
Uwe Steinmann
db8b5cc033 add 'WorkflowOwner' list to getDocumentList() 2016-02-10 13:33:56 +01:00
Uwe Steinmann
d62d6f5662 do not use sql but call getDocumentList() 2016-02-10 12:31:17 +01:00
Uwe Steinmann
14f600da35 add 'WorkflowByMe' list in getDocumentList() 2016-02-10 12:30:51 +01:00
Uwe Steinmann
2a5a2cd61d Merge branch 'seeddms-5.0.x' into develop 2016-02-10 11:49:15 +01:00
Uwe Steinmann
2da2f0af9a Merge branch 'seeddms-5.0.x' into develop 2016-02-08 13:24:40 +01:00
Uwe Steinmann
3b8d7a5271 Merge branch 'seeddms-5.0.x' into develop 2016-02-04 19:22:59 +01:00
Uwe Steinmann
468b146a64 Merge branch 'seeddms-5.0.x' 2016-01-25 09:40:01 +01:00
Uwe Steinmann
d81f946446 Merge branch 'seeddms-5.0.x' 2016-01-22 09:51:45 +01:00
Uwe Steinmann
097aae895f Merge branch 'seeddms-4.3.x' 2016-01-21 08:39:21 +01:00
Uwe Steinmann
ad41fd2571 fix calling checkTasks() 2016-01-19 10:10:38 +01:00
Uwe Steinmann
f71ea7eddc do not add js function checkTasks() to footer anymore 2016-01-19 10:10:15 +01:00
Uwe Steinmann
860f9b0854 Merge branch 'seeddms-5.0.x' into develop 2016-01-18 13:29:06 +01:00
Uwe Steinmann
3bd4605c1f Merge branch 'seeddms-5.0.x' into develop 2016-01-18 12:17:35 +01:00
Uwe Steinmann
5863d962ac Merge branch 'seeddms-5.0.x' into develop 2015-12-16 09:30:16 +01:00
Uwe Steinmann
569fa62737 fix link to receipt or revise a document 2015-12-10 10:30:50 +01:00
Uwe Steinmann
65a1ba9102 fix links in task menu 2015-12-10 09:24:46 +01:00
Uwe Steinmann
9e09e5db5a Merge branch 'seeddms-5.0.x' into develop 2015-12-10 07:57:20 +01:00
Uwe Steinmann
6b95229ff7 Merge branch 'seeddms-5.0.x' into develop 2015-12-09 21:54:02 +01:00
Uwe Steinmann
6ae70ce7f6 use constant S_LOG_USER_REMOVE 2015-12-08 18:19:33 +01:00
Uwe Steinmann
4a5d084ddd remove old sql code, use constant S_LOG_USER_REMOVED 2015-12-08 18:16:25 +01:00
Uwe Steinmann
502e9b6271 remove old sql code, use constant S_LOG_USER_REMOVED 2015-12-08 18:15:44 +01:00
Uwe Steinmann
ffc709c557 set individual recipients from group 2015-12-08 09:00:42 +01:00
Uwe Steinmann
52b64822c5 show name of volume for checkout 2015-12-08 09:00:04 +01:00
Uwe Steinmann
20e7b873a5 get classname of SeedDMS Document from dms instance
don't use hard coded SeedDMS_Core_Document anymore
2015-12-04 08:34:32 +01:00
Uwe Steinmann
7d88617964 individual approver/reviewer can be take from group 2015-12-04 08:00:50 +01:00
Uwe Steinmann
574cc53075 Merge branch 'seeddms-5.0.x' into develop 2015-12-03 15:24:41 +01:00
Uwe Steinmann
3e4e27f236 Merge branch 'seeddms-5.0.x' into develop 2015-12-03 15:10:34 +01:00
Uwe Steinmann
f7b2d5b6d6 use the checkout space of the logged in user not the substituted user 2015-12-01 18:06:41 +01:00
Uwe Steinmann
eee4e2f0eb add getUser() 2015-12-01 18:06:15 +01:00
Uwe Steinmann
0fc1806ca4 do not include ../inc/inc.ClassEmail.php 2015-12-01 09:23:41 +01:00
Uwe Steinmann
5351bd9596 create checkout filename from id, version and name 2015-11-30 20:47:19 +01:00
Uwe Steinmann
348d40ad22 show filename as saved in database table 2015-11-30 20:47:07 +01:00
Uwe Steinmann
10cbf3b3b3 add pptx to getMimeType() 2015-11-30 20:46:55 +01:00
Uwe Steinmann
1f77a749be Merge branch 'seeddms-5.0.x' into develop 2015-11-27 16:09:11 +01:00
Uwe Steinmann
3d0e970760 Merge branch 'seeddms-5.0.x' into develop 2015-11-23 21:58:21 +01:00
Uwe Steinmann
a55662ea1b Merge branch 'seeddms-4.3.x' 2015-11-19 17:43:24 +01:00
Uwe Steinmann
d04e65108d Merge branch 'seeddms-5.0.x' into develop 2015-11-19 08:00:10 +01:00
Uwe Steinmann
f33f7ab41a Merge branch 'seeddms-5.0.x' into develop 2015-11-16 21:58:04 +01:00
Uwe Steinmann
c22b22f49a Merge branch 'seeddms-5.0.x' into develop 2015-11-15 17:36:45 +01:00
Uwe Steinmann
19c195a357 Merge branch 'seeddms-5.0.x' into develop 2015-11-11 06:52:36 +01:00
Uwe Steinmann
ecf8f311d9 set propper Content-Type 2015-11-05 13:43:49 +01:00
Uwe Steinmann
14d79338de Merge branch 'seeddms-5.0.x' into develop 2015-10-30 16:16:24 +01:00
Uwe Steinmann
5dc4bf258b Merge branch 'seeddms-5.0.x' into develop 2015-10-30 13:26:01 +01:00
Uwe Steinmann
a30b3b9505 Merge branch 'seeddms-5.0.x' into develop 2015-10-30 13:09:25 +01:00
Uwe Steinmann
f78e02e7e8 Merge branch 'seeddms-5.0.x' into develop 2015-10-27 11:43:40 +01:00
Uwe Steinmann
50ef190ae7 Merge branch 'seeddms-5.0.x' into develop 2015-10-27 09:03:45 +01:00
Uwe Steinmann
031129a31c Merge branch 'seeddms-5.0.x' into develop 2015-10-20 18:21:47 +02:00
Uwe Steinmann
dc66a5959d use converters 2015-09-30 13:22:25 +02:00
Uwe Steinmann
7ba956d760 Merge branch 'seeddms-5.0.x' into develop 2015-09-30 12:10:39 +02:00
Uwe Steinmann
15bedc303e Merge branch 'seeddms-5.0.x' into develop 2015-09-28 14:54:03 +02:00
Uwe Steinmann
8d35bb6a9b Merge branch 'seeddms-4.3.x' 2015-09-28 14:47:29 +02:00
Uwe Steinmann
ddfea8f3cb Merge branch 'seeddms-5.0.x' into develop 2015-09-28 12:35:18 +02:00
Uwe Steinmann
fd92628c30 Merge branch 'seeddms-5.0.x' into develop 2015-09-23 18:11:17 +02:00
Uwe Steinmann
37f9771b97 Merge branch 'seeddms-5.0.x' into develop 2015-09-23 17:21:26 +02:00
Uwe Steinmann
42b5162ca4 Merge branch 'seeddms-5.0.x' into develop 2015-09-23 14:43:13 +02:00
Uwe Steinmann
b0edf297a2 Merge branch 'seeddms-5.0.x' into develop 2015-09-22 16:01:09 +02:00
Uwe Steinmann
e8b99cea70 replace all CURRENT_TIMESTAMP by $db->getCurrentTimestamp() 2015-09-22 09:01:18 +02:00
Uwe Steinmann
fcbb5f68fe Merge branch 'seeddms-5.0.x' into develop 2015-09-22 08:51:59 +02:00
Uwe Steinmann
6be0d179fc Merge branch 'seeddms-5.0.x' into develop 2015-09-21 16:58:25 +02:00
Uwe Steinmann
d54172d366 Merge branch 'seeddms-5.0.x' into develop 2015-09-18 08:00:06 +02:00
Uwe Steinmann
ab35650f0b check if settings->_libraryFolder is set before using it 2015-09-16 11:25:59 +02:00
Uwe Steinmann
850bb05481 add superfluous code 2015-09-16 11:10:11 +02:00
Uwe Steinmann
7826d487cc Merge branch 'seeddms-4.3.x' 2015-08-25 21:31:53 +02:00
Uwe Steinmann
07053ca7e9 check for includecontent checkbox and pass it to url 2015-08-25 16:44:07 +02:00
Uwe Steinmann
022490e461 set propper content type for excel documents 2015-08-25 16:43:27 +02:00
Uwe Steinmann
397c5ee9d8 Merge branch 'seeddms-5.0.x' into develop 2015-08-25 14:58:49 +02:00
Uwe Steinmann
8c0377aa39 Merge branch 'seeddms-5.0.x' into develop 2015-08-21 11:10:23 +02:00
Uwe Steinmann
b7de0f61c7 Merge branch 'seeddms-5.0.x' into develop 2015-08-20 22:38:08 +02:00
Uwe Steinmann
e97de9c6df Merge branch 'seeddms-5.0.x' into develop 2015-08-19 20:16:40 +02:00
Uwe Steinmann
58413e5218 Merge branch 'seeddms-5.0.x' into develop 2015-08-19 09:24:20 +02:00
Uwe Steinmann
4c6eb18528 Merge branch 'seeddms-5.0.x' into develop 2015-08-19 06:09:20 +02:00
Uwe Steinmann
92c24739bf Merge branch 'seeddms-5.0.x' into develop 2015-08-18 16:22:23 +02:00
Uwe Steinmann
263d4b7caf fix input field name for new mimetype 2015-08-13 18:02:37 +02:00
Uwe Steinmann
9aa2637a71 user showTextField() 2015-08-13 18:00:48 +02:00
Uwe Steinmann
ad1d9f556f Merge branch 'seeddms-5.0.x' into develop 2015-08-13 17:56:15 +02:00
Uwe Steinmann
f53413006b Merge branch 'seeddms-5.0.x' into develop 2015-08-13 11:55:19 +02:00
Uwe Steinmann
de79e6c496 Merge branch 'seeddms-5.0.x' into develop 2015-08-13 09:53:53 +02:00
Uwe Steinmann
7e30ec4459 Merge branch 'seeddms-5.0.x' into develop 2015-08-13 08:18:57 +02:00
Uwe Steinmann
d8b42af4b1 Merge branch 'seeddms-5.0.x' into develop 2015-08-11 14:11:14 +02:00
Uwe Steinmann
aa49c5b0b1 Merge branch 'seeddms-5.0.x' into develop 2015-08-10 21:58:16 +02:00
Uwe Steinmann
1b0eb64698 Merge branch 'seeddms-5.0.x' into develop 2015-08-09 07:26:07 +02:00
Uwe Steinmann
3ef5dbd2ae use dumplog() from revisionlog and receiptlog 2015-08-09 07:24:42 +02:00
Uwe Steinmann
ec244587eb fix merge error 2015-08-09 07:19:53 +02:00
Uwe Steinmann
0ba67b2634 Merge branch 'seeddms-5.0.x' into develop 2015-08-09 07:19:27 +02:00
Uwe Steinmann
a20c6f23e2 Merge branch 'seeddms-5.0.x' into develop 2015-08-08 09:40:15 +02:00
Uwe Steinmann
1bc65c0eef add update script for 6.0.0 2015-08-07 20:09:45 +02:00
Uwe Steinmann
4c907dbf9e Merge branch 'seeddms-5.0.x' into develop 2015-08-07 20:08:29 +02:00
Uwe Steinmann
92f66f4b4a Merge branch 'seeddms-5.0.x' into develop 2015-08-07 13:37:30 +02:00
Uwe Steinmann
70e504ecef Merge branch 'seeddms-5.0.x' into develop 2015-08-07 13:20:10 +02:00
Uwe Steinmann
eeff55eb7d pass $dms to constructor of SeedDMS_AccessOperation 2015-08-07 13:15:13 +02:00
Uwe Steinmann
c4f7223293 Merge branch 'seeddms-5.0.x' into develop 2015-08-07 13:13:14 +02:00
Uwe Steinmann
e8456dec57 Merge branch 'seeddms-5.0.x' into develop 2015-08-07 07:51:15 +02:00
Uwe Steinmann
06c89b0cc5 add statistic for transmittals 2015-08-06 22:21:28 +02:00
Uwe Steinmann
cca8221f28 fix export of substitutes 2015-08-06 18:26:47 +02:00
Uwe Steinmann
c8d7bdca8b Merge branch 'seeddms-5.0.x' into develop 2015-08-06 18:22:24 +02:00
Uwe Steinmann
e1f8a1abbb export user substitutes 2015-08-06 17:55:42 +02:00
Uwe Steinmann
51a06c4ab6 Merge branch 'seeddms-5.0.x' into develop 2015-08-06 13:42:39 +02:00
Uwe Steinmann
16abca2913 Merge branch 'seeddms-5.0.x' into develop 2015-08-06 06:46:27 +02:00
Uwe Steinmann
6c74206544 add transmittals to $objmap 2015-08-06 06:25:06 +02:00
Uwe Steinmann
68a695d58c dump revision and receiption log 2015-08-06 06:24:37 +02:00
Uwe Steinmann
972b8972be Merge branch 'seeddms-5.0.x' into develop 2015-08-05 22:48:03 +02:00
Uwe Steinmann
ed32bcfb70 import transmittals 2015-08-05 22:46:30 +02:00
Uwe Steinmann
91086c594e export transmittals 2015-08-05 22:46:15 +02:00
Uwe Steinmann
215380b806 remove echo statement 2015-08-05 22:45:57 +02:00
Uwe Steinmann
170f70d005 Merge branch 'seeddms-5.0.x' into develop 2015-08-05 21:32:53 +02:00
Uwe Steinmann
55ccf3e987 Merge branch 'seeddms-5.0.x' into develop 2015-08-05 21:14:35 +02:00
Uwe Steinmann
0d4a2164f3 Merge branch 'seeddms-5.0.x' into develop 2015-08-05 18:20:43 +02:00
Uwe Steinmann
46bbf2234a tblDocumentCheckOuts is not created in version 5.0.x 2015-08-05 18:00:17 +02:00
Uwe Steinmann
3478d4e86c fix field name revisiondate in tblDocumentContent 2015-08-05 17:53:57 +02:00
Uwe Steinmann
c7f5f77925 sync with mysql statements, fix errors 2015-08-05 17:30:41 +02:00
Uwe Steinmann
8a3aebf3cc Merge branch 'seeddms-5.0.x' into develop 2015-08-05 17:02:13 +02:00
Uwe Steinmann
f1ed611aa9 Merge branch 'seeddms-5.0.x' into develop 2015-07-31 08:01:35 +02:00
Uwe Steinmann
7fcfe644da Merge branch 'seeddms-5.0.x' into develop 2015-07-30 21:08:50 +02:00
Uwe Steinmann
6c7ff86a09 Merge branch 'seeddms-5.0.x' into develop 2015-07-30 11:25:56 +02:00
Uwe Steinmann
3d4f64a4e6 dangling links not needed anymore 2015-07-28 15:20:35 +02:00
Uwe Steinmann
0c6515b4c7 Merge branch 'seeddms-5.0.x' into develop 2015-07-28 10:24:06 +02:00
Uwe Steinmann
de8726cccf Merge branch 'seeddms-5.0.x' into develop 2015-07-28 09:01:02 +02:00
Uwe Steinmann
0c48b342a5 dskspace() checks if directory could be opened 2015-07-28 07:50:37 +02:00
Uwe Steinmann
d653c516ea pass backup dir to view 2015-07-28 07:50:02 +02:00
Uwe Steinmann
30ccf4f8f6 use backup dir if set 2015-07-28 07:49:35 +02:00
Uwe Steinmann
c1b28071df addSepDir() doesn't add dir separator to empty string
also remove space from string
2015-07-28 07:32:29 +02:00
Uwe Steinmann
2bf7bd0a4e use backup dir if set 2015-07-28 07:30:24 +02:00
Uwe Steinmann
ff53a3e3e5 backup dir can be set 2015-07-28 07:29:08 +02:00
Uwe Steinmann
b520bfece0 add method addDirSep() 2015-07-28 07:28:34 +02:00
Uwe Steinmann
9a228017c1 take duplicate declaration of doNotCheckDBVersion 2015-07-28 06:45:43 +02:00
Uwe Steinmann
572927668a remove space in content type for excel sheet 2015-07-27 20:54:21 +02:00
Uwe Steinmann
5f8cc5f460 add class variable _doNotCheckDBVersion 2015-07-24 16:05:47 +02:00
Uwe Steinmann
43341c802f add keys settings_enableMenuTasks and settings_enableMenuTasks_desc 2015-07-22 09:19:55 +02:00
Uwe Steinmann
75fbf8d1f4 add keys settings_autoLoginUser and settings_autoLoginUser_desc 2015-07-22 09:13:06 +02:00
Uwe Steinmann
368ef8478c use view classes from extension only if enabled 2015-07-22 07:08:22 +02:00
Uwe Steinmann
8ed3264ae6 run hook folderNavigationMenu 2015-07-15 22:08:59 +02:00
Uwe Steinmann
a6d8ed829f add new parameter $base to htmlStartPage(), call hook for documentMenu propperly 2015-07-15 17:00:23 +02:00
Uwe Steinmann
4e9cadeca6 add new method getHookObjects() which returns all registered hook objects 2015-07-15 16:59:36 +02:00
Uwe Steinmann
ce79c8e8cd check for files relative to $settings->_rootDir instead of '../' 2015-07-15 16:58:53 +02:00
Uwe Steinmann
bd7a11f0b1 use configured classname in getInstance()
this will make sure that even getInstance in child classes defined
by an extension will return objects of the right class
2015-07-15 16:57:26 +02:00
Uwe Steinmann
889779113d first check if user is an object before using it 2015-07-14 21:35:53 +02:00
Uwe Steinmann
9604076555 printAttributeEditField() can be passed a default value
document menu can be extended by a hook
2015-07-14 21:27:41 +02:00
Uwe Steinmann
d09605c6b9 pass null to printAttributeEditField if attribute is not set 2015-07-14 21:26:40 +02:00
Uwe Steinmann
f187dff23a auto login user if not already logged in
the user won't have a session, but will be granted access for the
http request
2015-07-14 21:23:54 +02:00
Uwe Steinmann
a2179ca53e add new paramter autoLoginUser 2015-07-14 21:23:33 +02:00
Uwe Steinmann
d0760b2925 place comment in left column on previous versions tab 2015-07-14 10:08:04 +02:00
Uwe Steinmann
5a3dec7c2e some reorganization of docinfo tab
make some more room
2015-07-14 10:00:39 +02:00
Uwe Steinmann
e17bcc714a initialize all arrays for return value in menutasks 2015-07-10 10:51:56 +02:00
Uwe Steinmann
4f2392e492 set timeout for checkTask() function 2015-07-10 08:28:19 +02:00
Uwe Steinmann
a6541296a1 list documents to receipt and revise in menu task list 2015-07-09 18:29:34 +02:00
Uwe Steinmann
7a601a1cd0 checkTasks() also checks documents to receipt and revise 2015-07-09 18:29:08 +02:00
Uwe Steinmann
f25c090039 command mytasks also returns documents to receipt and revise 2015-07-09 18:28:08 +02:00
Uwe Steinmann
9bc675873d getDocumentList() returns only documents I haven't touched
The lists AppRevByMe, ReviseByMe and ReceiptByMe will only return
those documents in its initial review/approval/receipt/revision
status (0).
2015-07-09 18:25:55 +02:00
Uwe Steinmann
59fd3c7170 add missing space between tag attributes 2015-07-09 08:01:21 +02:00
Uwe Steinmann
4290e705cf add tasks to menu if configured 2015-07-09 07:59:54 +02:00
Uwe Steinmann
863d203133 add command 'mytasks' 2015-07-09 07:59:30 +02:00
Uwe Steinmann
f35573611d set param enablemenutasks for view 2015-07-09 07:59:02 +02:00
Uwe Steinmann
cd3a239482 add new config parameter enableMenuTasks 2015-07-09 07:58:34 +02:00
Uwe Steinmann
9682b02b8e define function which updates the tasks in the menu 2015-07-09 07:57:46 +02:00
Uwe Steinmann
bf95beb536 put tasks into submenus 2015-07-08 19:48:18 +02:00
Uwe Steinmann
ae288c83f2 add javascript for continuosily upating task list 2015-07-08 18:59:28 +02:00
Uwe Steinmann
a76e1de49e reorder lists 2015-07-08 18:59:14 +02:00
Uwe Steinmann
3583962085 new task menutask in op/op.Ajax.php which calls menuTask() 2015-07-08 18:58:38 +02:00
Uwe Steinmann
6b2f528624 getDocumentList(AppRev) returns only untouched documents 2015-07-08 18:57:53 +02:00
Uwe Steinmann
e4a568e6b9 various updates and new phrases 2015-07-08 18:53:07 +02:00
Uwe Steinmann
d146e04a13 some ul list for attributes of older versions 2015-07-08 15:37:37 +02:00
Uwe Steinmann
284f987783 build tbs_template extension 2015-07-08 15:36:05 +02:00
Uwe Steinmann
8e5daeb960 add item for 4.3.20 2015-07-08 07:26:26 +02:00
Uwe Steinmann
26982d1da0 show preview image in list 2015-07-08 07:26:16 +02:00
Uwe Steinmann
bab558cd5c add entry for 4.3.20
Conflicts:
	CHANGELOG
2015-07-08 06:55:27 +02:00
Uwe Steinmann
9ce168b4b6 list only documents to approve which have passed review
previously all documents that need to be approved some time were
listed. Even those documents which haven't passed review and cannot
be approved currently.
2015-07-08 06:54:45 +02:00
Uwe Steinmann
4ae913e307 make field for expired date larger 2015-07-06 22:18:11 +02:00
Uwe Steinmann
51cae12fab fix setting expire date (Closes: #225) 2015-07-06 22:18:06 +02:00
Uwe Steinmann
6b1124c23f pass folder object and not id to printDocumentChooser() 2015-07-06 16:09:25 +02:00
Uwe Steinmann
85174c6f45 create list of rejected documents 2015-07-03 20:52:55 +02:00
Uwe Steinmann
4ac3ea014c set heading to add_approval 2015-07-03 16:57:37 +02:00
Uwe Steinmann
f98aecaa59 add configuration parameter to turn of database version check 2015-06-30 07:53:36 +02:00
Uwe Steinmann
88739db6e7 check if SeedDMS_Core_DMS::inList() returns boolean false
inList() used to return true of false. It returns the index in the
array insteaf of true
2015-06-29 10:28:52 +02:00
Uwe Steinmann
f7d695c015 some initial code to recursively merge access list (not used yet) 2015-06-29 10:28:10 +02:00
Uwe Steinmann
3a531462d9 add static method mergeAccessLists() 2015-06-29 10:27:23 +02:00
Uwe Steinmann
ddbc3839a5 Merge branch 'seeddms-4.3.x' 2015-06-26 16:51:06 +02:00
Uwe Steinmann
ad1edc8281 actually use username from command line 2015-06-26 16:42:12 +02:00
Uwe Steinmann
5f46f97298 new option -c to force recreation of index 2015-06-26 16:22:35 +02:00
Uwe Steinmann
d070f6da85 use access operations to check if operation is allowed
before, this was some own code which did not same the same
check as maySetReviewerApprover()
2015-06-26 12:23:09 +02:00
Uwe Steinmann
401e995df6 removing a version will also remove all references
references in tblTransmittalItems, tblDocumentRevisions and
tblDocumentRecievers were not removed
2015-06-26 12:21:48 +02:00
Uwe Steinmann
370bef25ff some new keys
Conflicts:
	languages/de_DE/lang.inc
	languages/en_GB/lang.inc
2015-06-25 21:51:48 +02:00
Uwe Steinmann
2c63ab3caf add ukrainian 2015-06-25 21:51:17 +02:00
Uwe Steinmann
9841c571b6 new version 1.1.4 2015-06-25 19:54:44 +02:00
Uwe Steinmann
52559730d9 use new customizable preview converters 2015-06-25 19:52:02 +02:00
Uwe Steinmann
9269a74092 make preview converters customizalbe 2015-06-25 19:50:47 +02:00
Uwe Steinmann
5348905c23 check if content is still there when calculating size 2015-06-25 19:50:10 +02:00
Uwe Steinmann
6b816f4d44 better handling of converters, added converters for preview
commands can also be deleted
2015-06-24 21:25:53 +02:00
Uwe Steinmann
2feeb560d1 pass $settings->_initialDocumentStatus to addContent() 2015-06-24 21:25:24 +02:00
Uwe Steinmann
3c2980dfdf pass $settings->_initialDocumentStatus to checkIn() 2015-06-24 20:35:42 +02:00
Uwe Steinmann
871ed870cc add optional parameter $initstate to checkIn() 2015-06-24 20:34:40 +02:00
Uwe Steinmann
ac550a1ec1 ållow to set review/approver in status draft 2015-06-24 17:28:55 +02:00
Uwe Steinmann
7ed7ae01ca set width of column for preview image to width of preview 2015-06-24 17:28:17 +02:00
Uwe Steinmann
e158a873f5 add target apidoc 2015-06-24 12:41:55 +02:00
Uwe Steinmann
f78af97b4a check if library folder is readable, pass folder to view 2015-06-24 12:26:08 +02:00
Uwe Steinmann
7f2bb15d49 remove some superflous chars 2015-06-23 19:10:14 +02:00
Uwe Steinmann
6487db064a use same icons and output for version information
Conflicts:
	views/bootstrap/class.ViewDocument.php
2015-06-23 10:16:16 +02:00
Uwe Steinmann
fd55efb3b9 show review/approval protocol 2015-06-23 10:03:15 +02:00
Uwe Steinmann
88df1cee82 move printProtocol() into class.Bootstrap.php 2015-06-23 09:53:14 +02:00
Uwe Steinmann
7cc3a0cf86 put icon before link to change status 2015-06-23 08:01:55 +02:00
Uwe Steinmann
6fde8fe200 take out review and approval status
currently not needed
2015-06-23 08:01:52 +02:00
Uwe Steinmann
db3d563e3f do not use mimetype delivered by server if overrideMimeType is set 2015-06-23 07:47:03 +02:00
Uwe Steinmann
b95f7ed91a new parameter overrideMimeType 2015-06-23 07:47:00 +02:00
Uwe Steinmann
28c39791dc finfo returns only mimetype 2015-06-23 07:03:11 +02:00
Uwe Steinmann
905bc9c140 add optional parameter cleasAccessList()
will turn off removal of notification
2015-06-19 15:25:25 +02:00
Uwe Steinmann
9643c12429 log id and name of folder 2015-06-19 15:05:04 +02:00
Uwe Steinmann
75c8129185 add cleanNotifyList() which removes users/groups with read access
also adds an optional parameter $noclean to setDefaultAccess and
setInheritAccess which keeps the methods from cleaning up the
notifier list
2015-06-19 15:05:01 +02:00
Uwe Steinmann
ee8ad500ce setDefaultAccess() propperly removes notifier without read access 2015-06-19 12:55:57 +02:00
Uwe Steinmann
5a0a034be3 setDefaultAccess() cleanly removes als notifiers without read access
This failed because the first call of removeNotify() has invalidated
the list of notifiers
2015-06-19 12:54:49 +02:00
Uwe Steinmann
8ee6d74613 setDefaultAccess() cleanly removes als notifiers without read access
This failed because the first call of removeNotify() has invalidated
the list of notifiers
2015-06-19 12:54:43 +02:00
Uwe Steinmann
a0d0790a34 initialize return array 2015-06-18 17:36:47 +02:00
Uwe Steinmann
b96d75b97d check if expires and sequence is set 2015-06-18 17:32:24 +02:00
Uwe Steinmann
ab72bb9f8c check if keywords, name, comment was posted 2015-06-18 17:29:05 +02:00
Uwe Steinmann
e513731455 subfolders and documents can be order by date and direction can be set 2015-06-18 13:50:34 +02:00
Uwe Steinmann
3ed43b0a85 fix take over of reviewer/approver from previous version 2015-06-17 12:21:25 +02:00
Uwe Steinmann
42ce9fa21b add value to checkbox for exporting content 2015-06-17 11:32:46 +02:00
Uwe Steinmann
b981f87d38 add new phrases 2015-06-17 11:17:27 +02:00
Uwe Steinmann
dbf31053c9 put export button into arcodion 2015-06-17 08:35:10 +02:00
Uwe Steinmann
1a179c7dca check if includecontent is set
if not set only the excel file is delivered
2015-06-17 08:34:15 +02:00
Uwe Steinmann
5d5d954077 createToc() uses self::items, use counter for columns 2015-06-17 07:59:06 +02:00
Uwe Steinmann
5b03c3dcc3 show link to Indexer only if fulltext is enabled 2015-06-15 15:29:07 +02:00
Uwe Steinmann
9eb9114ece receipt protocol just contains last entry, propperly check for access on
receiping  a version
2015-06-15 14:15:04 +02:00
Uwe Steinmann
80a49262f4 propperly check for sufficient access rights 2015-06-15 14:14:31 +02:00
Uwe Steinmann
d12f9993dd add mayReceipt() 2015-06-15 14:13:38 +02:00
Uwe Steinmann
d8df113676 add class 'help' 2015-06-15 09:24:56 +02:00
Uwe Steinmann
e7ed3f7789 add optional parameter class to contentContainerStart() 2015-06-15 09:21:20 +02:00
Uwe Steinmann
67d10d10ae use access operation to check if document may be reviewed 2015-06-15 09:05:20 +02:00
Uwe Steinmann
03d8d6c247 mayApprove() checks if document is in review 2015-06-15 09:03:22 +02:00
Uwe Steinmann
15a708fbf2 use access operation to check if approval is allowed
Conflicts:
	op/op.ApproveDocument.php

Conflicts:
	op/op.ApproveDocument.php
2015-06-15 09:02:45 +02:00
Uwe Steinmann
ecafa39d1e mayApprove() checks if document is in review 2015-06-15 09:01:16 +02:00
Uwe Steinmann
da7c04d250 actually use uploaded file 2015-06-12 12:56:17 +02:00
Uwe Steinmann
34a7df9180 rename approveLogId to approveLogID
Conflicts:
	views/bootstrap/class.ViewDocument.php
2015-06-12 12:46:03 +02:00
Uwe Steinmann
42d822a48d output link to approval/review file 2015-06-12 11:23:44 +02:00
Uwe Steinmann
77794294b1 download review/approval files 2015-06-12 09:01:57 +02:00
Uwe Steinmann
b3c9cb2728 add function get_extension()
returns file extension by mimetype

Conflicts:
	inc/inc.Utils.php
2015-06-12 09:01:41 +02:00
Uwe Steinmann
fcddfb0162 allow to upload a file with each review/approval
Conflicts:
	op/op.ApproveDocument.php
	op/op.ReviewDocument.php
2015-06-11 21:37:41 +02:00
Uwe Steinmann
5bac2e9a4e manage file uploaded with review or approval 2015-06-11 21:32:45 +02:00
Uwe Steinmann
01ce03ca5c redirect relative to http_root 2015-06-11 14:10:12 +02:00
Uwe Steinmann
2fceade3a2 show docs in root folder of document chooser 2015-06-11 11:27:14 +02:00
Uwe Steinmann
5bc915f487 add directory for help files 2015-06-11 06:55:28 +02:00
Uwe Steinmann
0e8a385b6d allow context sensitive help files 2015-06-11 06:42:33 +02:00
Uwe Steinmann
2cd37d90b1 send end date to end of day 2015-06-10 19:14:28 +02:00
Uwe Steinmann
f2a7811f0c use SeedDMS_Core_DMS::getClassname() to check for propper class 2015-06-09 21:51:09 +02:00
Uwe Steinmann
4cc1704915 add table tblCachedAccess (not used) 2015-06-09 21:36:06 +02:00
Uwe Steinmann
6809645256 take out download of version info, take out next revision unless
document is released
2015-06-09 21:35:10 +02:00
Uwe Steinmann
0c053d410c put creation of excel file into its own method 2015-06-09 21:34:07 +02:00
Uwe Steinmann
6a7b9c8a65 mayRecipients() and mayRevision() return only true if document ist
released
2015-06-09 21:33:08 +02:00
Uwe Steinmann
394a23fa57 add download of documents 2015-06-09 21:31:13 +02:00
Uwe Steinmann
a178ab9bc0 add missing translations 2015-06-09 13:53:16 +02:00
Uwe Steinmann
d7f7a40f06 add phrases for initial document status and new document status 2015-06-09 13:50:00 +02:00
Uwe Steinmann
7791ae1b0d open the right tab when jumping to ViewDocument 2015-06-09 11:19:16 +02:00
Uwe Steinmann
82190c7d0e check for current tab 2015-06-09 09:00:22 +02:00
Uwe Steinmann
380ac2f1bd add currenttab to link when redirecting to out/out.ViewDocument.php 2015-06-09 08:59:25 +02:00
Uwe Steinmann
bd85c0c25a set missing parameter [url] in email notification 2015-06-09 07:16:34 +02:00
Uwe Steinmann
15bb6177d8 pass version to url checking for new versions 2015-06-09 07:03:03 +02:00
Uwe Steinmann
fb2e7dfe12 utf8_decode file name in zip file 2015-06-08 22:03:08 +02:00
Uwe Steinmann
20f28bb7df use /tmp for tempnam() 2015-06-08 22:00:27 +02:00
Uwe Steinmann
46dc4ea6e3 add code for downloading file into contoller 2015-06-08 21:59:56 +02:00
Uwe Steinmann
da0b3e71b3 approval can be added again 2015-06-08 21:58:17 +02:00
Uwe Steinmann
c2e2b1e9be take resultmode from view parameters 2015-06-08 09:10:34 +02:00
Uwe Steinmann
4b23765042 show button to approve document if status is null
was only shown if the status of the document was S_APP_DRAFT
2015-06-08 09:09:03 +02:00
Uwe Steinmann
f7c8d39b5d pass resultmode to view 2015-06-08 09:08:32 +02:00
Uwe Steinmann
94744862a5 create excel file with meta data for for files in zip archive 2015-06-08 09:06:59 +02:00
Uwe Steinmann
13a977f84f add export button if search returned documents 2015-06-02 17:29:33 +02:00
Uwe Steinmann
11bac92d2f if $_GE['export'] is set the search result will be downloaded as a
zipfile
2015-06-02 17:28:09 +02:00
Uwe Steinmann
a6085279c9 add class for downloading a bunch of document versions 2015-06-02 17:27:35 +02:00
Uwe Steinmann
dea874de02 set $_initialDocumentStatus to 2 instead of S_RELEASED
the constant S_RELEASED isn't know at that time
2015-06-02 17:26:41 +02:00
Uwe Steinmann
ec78639d94 do not hide review if workflow mode is traditional_only_approve
otherwise old documents which are still in review can't be reviewed
anymore
2015-06-02 10:18:37 +02:00
Uwe Steinmann
1123611371 rename mayOverwriteStatus() to mayOverrideStatus() 2015-06-02 10:04:35 +02:00
Uwe Steinmann
1bc5e6116c document status S_DRAFT can be set 2015-06-02 10:04:01 +02:00
Uwe Steinmann
5a29cde314 set initial document status 2015-06-02 10:03:34 +02:00
Uwe Steinmann
944b059abe set initial document status 2015-06-02 10:03:09 +02:00
Uwe Steinmann
d9d4d89a27 set initial document status 2015-06-02 10:02:46 +02:00
Uwe Steinmann
86f641c3b0 new status in getOverallStatusText() 2015-06-02 10:02:02 +02:00
Uwe Steinmann
3a99d005b1 new parameter initialstate for addDocument() 2015-06-02 10:01:08 +02:00
Uwe Steinmann
325b91933d new document status S_DRAFT, initial doc status can set 2015-06-02 10:00:15 +02:00
Uwe Steinmann
bd08e9b125 search for documents/folders only 2015-06-02 08:52:36 +02:00
Uwe Steinmann
9de1ff7cf4 add translations for search form 2015-06-02 08:52:03 +02:00
Uwe Steinmann
142af5c218 add several new phrases, some cleanup 2015-06-01 22:32:15 +02:00
Uwe Steinmann
596a577529 show link to revise document even if still in workflow 2015-06-01 17:35:25 +02:00
Uwe Steinmann
c460c9e674 pass content not document to hooks 2015-06-01 17:34:52 +02:00
Uwe Steinmann
312e619fa6 take out echo, remove $limit parameter from getStatus()
The $limit parameter has not been used and if if was used, the
method would have returned false in many cases because the number
records would have been > 1
2015-06-01 17:33:12 +02:00
Uwe Steinmann
45d3ebab3d place business login into controller class 2015-06-01 16:05:03 +02:00
Uwe Steinmann
34bd22f40e separate busines logic into controller 2015-06-01 14:01:56 +02:00
Uwe Steinmann
ed5a5bb069 fix typo in variable name 2015-06-01 14:01:23 +02:00
Uwe Steinmann
4e15fee3fb set url for notifaction mail 2015-06-01 14:01:02 +02:00
Uwe Steinmann
68e3045da2 make table condensed to save some space 2015-06-01 08:40:03 +02:00
Uwe Steinmann
87eb1e0dc9 turn off by default 2015-06-01 08:39:44 +02:00
Uwe Steinmann
175485284d take out old blue theme 2015-06-01 07:41:46 +02:00
Uwe Steinmann
c2e49aa2d7 take out old code 2015-06-01 07:40:02 +02:00
Uwe Steinmann
bcff843186 set comment in notification mail 2015-06-01 07:36:14 +02:00
Uwe Steinmann
5246c3a329 place code for updating document content into controller 2015-06-01 07:21:16 +02:00
Uwe Steinmann
19b9888d34 place business logic into controller 2015-06-01 07:16:21 +02:00
Uwe Steinmann
bcebca9c97 unset $this->_status in SeedDMS_Core_DocumentContent::setStatus() 2015-05-30 07:33:28 +02:00
Uwe Steinmann
570e0fa782 some code reorganisation 2015-05-30 07:32:36 +02:00
Uwe Steinmann
d5e9c7532a fix error in calling hook showDocumentContentAttribute, show if document was checked out 2015-05-29 20:48:27 +02:00
Uwe Steinmann
5c94655bd7 allow to show partial trees 2015-05-29 20:47:46 +02:00
Uwe Steinmann
c48030d54e add more parameter to printDocumentChooser() 2015-05-29 20:47:03 +02:00
Uwe Steinmann
13babfa3f9 add field for selecting a document from the library 2015-05-29 20:46:25 +02:00
Uwe Steinmann
ed1db45990 pass checkoutDir to view 2015-05-29 20:45:57 +02:00
Uwe Steinmann
4e6081bacc fix wrong access on $settings 2015-05-29 20:45:34 +02:00
Uwe Steinmann
062097a438 pass libraryfolder to view 2015-05-29 20:44:52 +02:00
Uwe Steinmann
220fa8a8fc split file into stub and controller 2015-05-29 20:44:16 +02:00
Uwe Steinmann
5b931afefb split AddDocument into stub and controller 2015-05-29 20:43:37 +02:00
Uwe Steinmann
6678928301 some spanish updates 2015-05-29 20:42:50 +02:00
Uwe Steinmann
b8d06babee add setting for library folder 2015-05-29 20:42:37 +02:00
Uwe Steinmann
38b7a7c660 callHook() returns null if no method was found 2015-05-29 20:41:52 +02:00
Uwe Steinmann
3bc72a46df do not include jquery-cookie/jquery.cookie.js
it's currently not needed and not available
2015-05-21 22:10:06 +02:00
Uwe Steinmann
e65c266831 add SeedDMS_Core_AddContentResultSet::setDMS(), fixed typo 2015-05-21 22:09:33 +02:00
Uwe Steinmann
5e846059f7 replace '/' by ', ' for better line break in header 2015-05-21 15:58:10 +02:00
Uwe Steinmann
f76536b0a4 set some new icons 2015-05-20 13:21:05 +02:00
Uwe Steinmann
536ead64ac allow to substitute user for regular users 2015-05-19 19:44:18 +02:00
Uwe Steinmann
6c1ac6f038 set width of .chzn-select-deselect to 95% 2015-05-19 19:43:57 +02:00
Uwe Steinmann
207f0b255f add method maySwitchToUser(), fix getReverseSubstitutes() 2015-05-19 19:42:29 +02:00
Uwe Steinmann
a80f4090af add filter for documents in revision 2015-05-19 19:41:40 +02:00
Uwe Steinmann
395f742bce various new phrases 2015-05-19 19:40:43 +02:00
Uwe Steinmann
20a695f571 minor html fixes 2015-05-19 13:26:10 +02:00
Uwe Steinmann
06c71cc332 add handling of substitutes 2015-05-19 08:06:24 +02:00
Uwe Steinmann
fedcdb1b99 add table for user substitutes and not yet implemented acls 2015-05-19 08:05:15 +02:00
Uwe Steinmann
d4652a614c add functions for handling substitutes 2015-05-19 08:03:12 +02:00
Uwe Steinmann
b374e8e962 fix output of message when item was deleted 2015-05-16 19:42:07 +02:00
Uwe Steinmann
277fe6d5ad lots of new phrases 2015-05-16 19:41:43 +02:00
Uwe Steinmann
54525d60ef make revsiondate default to NULL 2015-05-15 14:22:16 +02:00
Uwe Steinmann
ce572f82cb add option -u to set the user doing the upload (Bug #214) 2015-05-15 07:17:52 +02:00
Uwe Steinmann
eb7f3613ca add scripts for adding content to a transmittal 2015-05-13 18:43:28 +02:00
Uwe Steinmann
fe9229c8bc add link for addind content to transmittal 2015-05-13 18:42:03 +02:00
Uwe Steinmann
2d967f8741 replace # in table header 2015-05-13 18:41:27 +02:00
Uwe Steinmann
bdd75ecfee fix addContent() 2015-05-13 18:41:10 +02:00
Uwe Steinmann
37fe7925a4 add checking for duplicates 2015-05-13 17:37:53 +02:00
Uwe Steinmann
3aa22eccbd add icon from removing and updating transmittal item 2015-05-13 17:35:36 +02:00
Uwe Steinmann
6f3594d294 add cmd [remove|update]transmittalitem 2015-05-13 17:34:50 +02:00
Uwe Steinmann
d7232aa8cd fix key of phrase 2015-05-13 17:34:23 +02:00
Uwe Steinmann
359f030ddb make it work again with new language dirs 2015-05-13 17:32:44 +02:00
Uwe Steinmann
540b1ece0a add getSize(), updateContent() etc. 2015-05-13 17:32:10 +02:00
Uwe Steinmann
3efa77e78f add generic function for printing a workflow protocol 2015-05-12 19:14:25 +02:00
Uwe Steinmann
d446034193 nicer output of item list 2015-05-12 19:13:55 +02:00
Uwe Steinmann
20227a44a4 take out debug code 2015-05-12 19:13:34 +02:00
Uwe Steinmann
d538bde579 add more lists of documents 2015-05-12 19:13:08 +02:00
Uwe Steinmann
bc7407ad85 add transmittal mgr to user menu, some code cleanup 2015-05-12 19:12:22 +02:00
Uwe Steinmann
f083b6fd7a check for due revision workflow 2015-05-12 19:11:38 +02:00
Uwe Steinmann
4101a83639 better error checking 2015-05-12 19:11:17 +02:00
Uwe Steinmann
5296edb8d2 more updates and new phrases 2015-05-12 19:10:40 +02:00
Uwe Steinmann
6cfdea17b3 add function to return revision status 2015-05-12 19:10:02 +02:00
Uwe Steinmann
309be28256 add getUser() 2015-05-12 19:08:55 +02:00
Uwe Steinmann
448dc172d0 add functions to manage revising documents 2015-05-12 19:07:59 +02:00
Uwe Steinmann
a5d77d7cbb add more document lists 2015-05-12 19:07:26 +02:00
Uwe Steinmann
4c74bda247 add files to download content of transmittal 2015-05-12 19:06:23 +02:00
Uwe Steinmann
22c5470b9b add missing file to revise document 2015-05-12 19:05:47 +02:00
Uwe Steinmann
71da44c618 add missing files for revising documents 2015-05-12 19:05:02 +02:00
Uwe Steinmann
9859737668 fix typo in file 2015-05-11 09:32:10 +02:00
Uwe Steinmann
608a86d45c rename reviser to revisor, added revision workflow to document page 2015-05-11 09:30:13 +02:00
Uwe Steinmann
0fab2df676 many changes on revision workflow 2015-05-11 09:29:34 +02:00
Uwe Steinmann
7b41fa961c lots of key corrections 2015-05-11 09:29:00 +02:00
Uwe Steinmann
9955a0e07b rename tblDocumentRevisers to tblDocumentRevisors 2015-05-11 09:28:31 +02:00
Uwe Steinmann
cf2160993f correct wrong phrase if there are no group approvals/reviews 2015-05-08 08:32:47 +02:00
Uwe Steinmann
7d664ac105 correct wrong phrase if there are no group receipts 2015-05-08 08:30:35 +02:00
Uwe Steinmann
2ddd6aa468 various updates 2015-05-08 08:25:29 +02:00
Uwe Steinmann
ed0b1f28cb do not show items if no transmittal is selected 2015-05-08 08:23:33 +02:00
Uwe Steinmann
a6a335d481 add inc.ClassTransmittal.php 2015-05-08 07:55:07 +02:00
Uwe Steinmann
b2027eb2d7 pass on msg to setStatus() in verifyStatus() 2015-05-04 08:39:18 +02:00
Uwe Steinmann
af177f5249 include all needed files 2015-05-04 08:35:05 +02:00
Uwe Steinmann
6c35f106a4 add optional parameter $msg to
SeedDMS_Core_DocumentContent::verifyStatus()

set when method is called in removeWorkflow
2015-05-04 08:29:16 +02:00
Uwe Steinmann
9b643fa700 check for extension dir before reading contents 2015-05-04 07:15:00 +02:00
Uwe Steinmann
a5c27190c1 no need to pass document status to addWorkflowAction() 2015-05-04 07:02:51 +02:00
Uwe Steinmann
b872318350 output list of documents receipt by me 2015-05-04 06:12:30 +02:00
Uwe Steinmann
a16a57a1f9 new documentList for 'ReceiptByMe' 2015-05-04 06:11:35 +02:00
Uwe Steinmann
3d10f91026 use FILEINFO_MIME_TYPE instead of FILEINFO_MIME (Closes Bug #209) 2015-05-02 08:35:26 +02:00
Uwe Steinmann
fa43001824 use propper name of converters array in settings 2015-05-02 08:05:51 +02:00
Uwe Steinmann
f32dbe5ef8 escape html code before output 2015-04-30 14:05:28 +02:00
Uwe Steinmann
47d97e77d8 add files for transmittal management and receptions 2015-04-30 07:09:21 +02:00
Uwe Steinmann
eefc346312 include correct files in right direction 2015-04-29 20:08:10 +02:00
Uwe Steinmann
31ebf1807f various new phrases 2015-04-28 14:29:25 +02:00
Uwe Steinmann
b4e8c39158 add tab for document reception 2015-04-28 12:18:35 +02:00
Uwe Steinmann
2a1ce40a9c add functions getReceiptStatusText() and printReceiptStatusText() 2015-04-28 12:18:01 +02:00
Uwe Steinmann
2d5827a1b9 add notes for 4.3.17
Conflicts:
	CHANGELOG
2015-04-27 21:33:07 +02:00
Uwe Steinmann
c3d9efc691 fix calculated used disk space in percent 2015-04-27 21:29:35 +02:00
Uwe Steinmann
304e54f009 list only users in select box which are not hidden 2015-04-27 21:29:35 +02:00
Uwe Steinmann
4e682ecbe2 add more hooks for showing/editing attributes 2015-04-27 08:27:19 +02:00
Uwe Steinmann
877f937413 return value of hook will be passed on even if not a string 2015-04-27 08:26:51 +02:00
Uwe Steinmann
962e0f8523 include Core/inc.ClassTransmittal.php 2015-04-27 08:24:59 +02:00
Uwe Steinmann
01b55843d2 add class for handling transmittals 2015-04-27 08:24:26 +02:00
Uwe Steinmann
7338ddaadd fix typo in comment 2015-04-27 08:17:27 +02:00
Uwe Steinmann
d04786884b add tables for tranmittals 2015-04-27 08:16:50 +02:00
Uwe Steinmann
654d8ac75a add parameter $version to documentListRow()
in order to show a specific version
2015-04-25 20:49:47 +02:00
Uwe Steinmann
3d3025c2cd no need to create temp table ttstatid anymore 2015-04-25 20:49:13 +02:00
Uwe Steinmann
0b57325c04 fix take over of approvers/reviewers from previous version 2015-04-23 17:12:57 +02:00
Uwe Steinmann
91f7d8dfc3 show warning if document is checked out 2015-04-23 16:45:19 +02:00
Uwe Steinmann
5952d49711 add list of documents check out by me 2015-04-23 16:44:55 +02:00
Uwe Steinmann
0bac3deabb show message and hide form if document cannot be checked in 2015-04-23 16:44:16 +02:00
Uwe Steinmann
4b6eeba319 add list of documents checked out by me in getDocumentList() 2015-04-23 16:43:19 +02:00
Uwe Steinmann
c0ba8a6711 create checkout dir if required and allowed in the settings 2015-04-23 11:49:05 +02:00
Uwe Steinmann
8b065cf7ac propperly clean checked out file in possible cases
previously the checked out file was not remove from the checkout area
if it was unchanged and checked in
2015-04-23 11:48:01 +02:00
Uwe Steinmann
505763e0be use new SeedDMS_Core_DMS::getDocumentList() method 2015-04-23 11:26:25 +02:00
Uwe Steinmann
1afd3102ab fix parameter definition in comment 2015-04-23 11:26:00 +02:00
Uwe Steinmann
107f96e921 add method getDocumentList()
it returns a list of database records with all the information
currently needed on the MyDocuments page.
2015-04-23 11:24:42 +02:00
Uwe Steinmann
61294336b5 add missing files for listing of documents need to be watch at 2015-04-22 17:24:58 +02:00
Uwe Steinmann
08e768fc52 add missing files for document check out/іn 2015-04-22 17:23:54 +02:00
Uwe Steinmann
87b3c37cb0 use $_REQUEST instead of $_GET when getting currenttab 2015-04-22 17:22:30 +02:00
Uwe Steinmann
4f3c6ed090 add checkbox for creating checkout dir if it doesn't exists 2015-04-22 17:21:57 +02:00
Uwe Steinmann
d7d4ab6390 use classnames in SeedDMS_Core_DMS when instanciating, new method
getDocumentCheckOuts()
2015-04-22 17:20:57 +02:00
Uwe Steinmann
12b0eadc66 use classnames in SeedDMS_Core_DMS when instanciating users 2015-04-22 17:19:53 +02:00
Uwe Steinmann
5702708643 add link to out/out.ReceiptSummary.php in MyDocuments menu 2015-04-22 14:57:36 +02:00
Uwe Steinmann
1ab9fdb229 add field startdate to talbe tblDocumentRevisers 2015-04-22 14:57:07 +02:00
Uwe Steinmann
9c64566386 even more phrases 2015-04-22 13:46:33 +02:00
Uwe Steinmann
4a413cf72b add some more missing phrases 2015-04-22 13:42:05 +02:00
Uwe Steinmann
69e56a5087 various small updates 2015-04-22 13:38:23 +02:00
Uwe Steinmann
2d3277a7ea add link to out/out.SetRevisers.php 2015-04-22 11:42:20 +02:00
Uwe Steinmann
df75ae5c8c add method maySetReviser 2015-04-22 11:41:39 +02:00
Uwe Steinmann
0addaf56d3 add missing files for revision workflow and document reception 2015-04-22 10:33:49 +02:00
Uwe Steinmann
040839714d init datepicker for #revisionstartdate 2015-04-22 10:32:25 +02:00
Uwe Steinmann
ebdfc45b69 add tables for revision workflow 2015-04-22 10:31:56 +02:00
Uwe Steinmann
a590fec967 add revision workflow 2015-04-22 10:31:36 +02:00
Uwe Steinmann
68be1ad42e fix lots of error for managing receiveLog 2015-04-20 18:33:42 +02:00
Uwe Steinmann
ca9715c3bc various error fixes in sql statements for ReceiptLog 2015-04-20 18:32:56 +02:00
Uwe Steinmann
a3b6ed8fb3 add method getReceiptStatus 2015-04-20 18:32:11 +02:00
Uwe Steinmann
4bd0e3efe0 show link to out/out.SetRecipients.php if allowed 2015-04-20 13:46:59 +02:00
Uwe Steinmann
274c020148 add table for acknowledge workflow 2015-04-20 13:46:26 +02:00
Uwe Steinmann
387f67dad4 enable/disable Acknowledge and Revision workflow 2015-04-20 13:44:45 +02:00
Uwe Steinmann
ff9b3486c5 add maySetRecipients() 2015-04-20 13:44:13 +02:00
Uwe Steinmann
8824aa4624 add administration of recipients of documents 2015-04-20 13:43:40 +02:00
Uwe Steinmann
03bfa5f972 get read access list for document not folder 2015-04-20 13:42:38 +02:00
Uwe Steinmann
0e1571c6c8 check if version modification is allowed 2015-04-20 13:41:35 +02:00
Uwe Steinmann
4e5bf5912f set proper msg when approver was deleted or already assigned 2015-04-20 13:40:10 +02:00
Uwe Steinmann
90cbbe7d3c some new phrases 2015-04-17 20:13:34 +02:00
Uwe Steinmann
e00f440717 set checkout dir 2015-04-17 20:12:29 +02:00
Uwe Steinmann
696b5f0996 add checkout item to document menu 2015-04-17 20:11:51 +02:00
Uwe Steinmann
bcb34f1e51 set parameter checkoutdir in view 2015-04-17 20:11:09 +02:00
Uwe Steinmann
dc08f8df1b add configuration of checkout dir 2015-04-17 20:10:36 +02:00
Uwe Steinmann
a796c85e01 add validation of attributes 2015-04-17 20:09:20 +02:00
Uwe Steinmann
3dae5ec57a add all methods to handle document checkout and checkin 2015-04-17 20:08:06 +02:00
Uwe Steinmann
7bc0b8947f add sql statements to setOwner() for moving locks and checkouts
still commented out, but the idea is, that the user of a lock and checkout
of a document should also be changed if the document owner changes
2015-04-17 20:05:34 +02:00
Uwe Steinmann
2d7e511bb8 add table tblDocumentCheckOuts 2015-04-17 19:50:55 +02:00
299 changed files with 18292 additions and 3297 deletions

303
CHANGELOG
View File

@ -1,3 +1,306 @@
--------------------------------------------------------------------------------
Changes in version 6.0.30
--------------------------------------------------------------------------------
- merge changes up to 5.1.37
- receipt comment can be disabled
--------------------------------------------------------------------------------
Changes in version 6.0.29
--------------------------------------------------------------------------------
- merge changes up to 5.1.36
- fix regression in FolderNotify
--------------------------------------------------------------------------------
Changes in version 6.0.28
--------------------------------------------------------------------------------
- merge changes up to 5.1.35
--------------------------------------------------------------------------------
Changes in version 6.0.27
--------------------------------------------------------------------------------
- merge changes up to 5.1.34
- Document/folder check distinguishes between documents which cannot be
receiped/revised because of access rights or the recipient/revisor being
disabled.
- fix creating user via rest api
- checkout info does not depend on whether the logged in user was substituted
- add new endpoints for managing roles by rest api
- add transmittals in menu
- add legacy access check for controllers
--------------------------------------------------------------------------------
Changes in version 6.0.26
--------------------------------------------------------------------------------
- merge changes up to 5.1.33
- add task to import files from drop folder
- add substitution of users in bootstrap4 theme
--------------------------------------------------------------------------------
Changes in version 6.0.25
--------------------------------------------------------------------------------
- merge changes up to 5.1.32
- status log can be turned on with advanced access control
- scheduler has more condensed layout
--------------------------------------------------------------------------------
Changes in version 6.0.24
--------------------------------------------------------------------------------
- add task to send list of recent changes by email
- merge changes up to 5.1.31
--------------------------------------------------------------------------------
Changes in version 6.0.23
--------------------------------------------------------------------------------
- fix setting recipients and revisors
- check in of a document is allowed for the user having done the check out
or those users with unlimited access rights on the document
- merge changes up to 5.1.30
--------------------------------------------------------------------------------
Changes in version 6.0.22
--------------------------------------------------------------------------------
- merge changes up to 5.1.29
--------------------------------------------------------------------------------
Changes in version 6.0.21
--------------------------------------------------------------------------------
- merge changes up to 5.1.28
- add new check for documents with identical sequence numbers in a folder
--------------------------------------------------------------------------------
Changes in version 6.0.20
--------------------------------------------------------------------------------
- merge changes up to 5.1.27
- fix triggering workflow (Closes: #542)
- create original file name from new document name when uploading document
from the library folder. Used to be the original file name
--------------------------------------------------------------------------------
Changes in version 6.0.19
--------------------------------------------------------------------------------
- merge changes up to 5.1.26
- fix deletion of tasks when using bootstrap4 theme
- fix deletion of documents when clicking on icon in document list (my documents)
--------------------------------------------------------------------------------
Changes in version 6.0.18
--------------------------------------------------------------------------------
- finish op/op.Cron.php, returns json
- merge changes up to 5.1.25
- fix sending trigger workflow notification (Closes: #522)
- fix updating und deleting items in document lists
- call hook 'filenameDownloadItem' in search export and transmittal download
- fix possible xss attack in UsrMgr (CVE-2022-28479)
--------------------------------------------------------------------------------
Changes in version 6.0.17
--------------------------------------------------------------------------------
- merge changes up to 5.1.24
- send notification when a receiption of a document was submitted
--------------------------------------------------------------------------------
Changes in version 6.0.16
--------------------------------------------------------------------------------
- cancel checkout needs confirmation
- add input field to filter list of recipients if more then 10
- add task for creating missing preview images
- no longer use old PHPExcel classes, use PhpOffice\PhpSpreadsheet\Spreadsheet
instead
--------------------------------------------------------------------------------
Changes in version 6.0.15
--------------------------------------------------------------------------------
- merge changes up to 5.1.22
- add a new task for checking the checksum of all document versions
- add searching for revision date
- list of open tasks will no longer contain expired documents but MyDocuments
page still list them
- fixed downloading approval file (Closes: #503)
- regular users can no longer set owner of document while uploading
--------------------------------------------------------------------------------
Changes in version 6.0.14
--------------------------------------------------------------------------------
- show debug menu only if debug mode is on
- merge changes up to 5.1.21
- document links can be added by regular users again
- add list of checked out documents to tasks
- issue a warning when removing a document which is checked out
- checked out can be discarded if it was changed
--------------------------------------------------------------------------------
Changes in version 6.0.13
--------------------------------------------------------------------------------
- merge changes up to 5.1.20
- create download file for transmittal in system tmp (Closes: #478)
- sync source code of checkin with update document
--------------------------------------------------------------------------------
Changes in version 6.0.12
--------------------------------------------------------------------------------
- merge changes up to 5.1.19
- fix various errors concerning workflows
- show menu tasks even if not admin (Closes: #485)
--------------------------------------------------------------------------------
Changes in version 6.0.11
--------------------------------------------------------------------------------
- merge changes up to 5.1.18
- fix access restriction for roles (content of documents was visible even if the
role and status didn't allow it)
- fix missing Content-Type in UserList (Closes: #480)
--------------------------------------------------------------------------------
Changes in version 6.0.10
--------------------------------------------------------------------------------
- merge changes up to 5.1.17
- fix list of previous document versions (Closes: #471)
- fix uploading files with fine uploader (Closes: #472)
- clear revision date when all revisors have been deleted
- improve scheduler task management, tasks can be deleted, fix setting parameters
- add op.Cron.php for running all scheduled tasks
--------------------------------------------------------------------------------
Changes in version 6.0.9
--------------------------------------------------------------------------------
- merge changes up to 5.1.16
- fix removal of roles (Closes: #465)
- fix password forgotten process
- fix setting role of new user and retrieving role of existing user
- processes of users can be deleted again, instead of only transfered to
another user
- fix export of search results, headers of excel file can be translated
- fix arcordeon for folder filters on search page
- fix upload from dropfolder
- fix adding new calendar event
--------------------------------------------------------------------------------
Changes in version 6.0.8
--------------------------------------------------------------------------------
- merge changes up to 5.1.15
- fix syntax error in op/op.EditComment.php
- fix use of private variable in op/op.SetRecipients.php and op/op.SetRevisors.php
- fix triggering a transition in advanced workflow mode
--------------------------------------------------------------------------------
Changes in version 6.0.7
--------------------------------------------------------------------------------
- fix editing of document attachments
- make receipt summary look like approval/review summary
- merge changes up to 5.1.14
- do not show the updating user in a revision workflow if the status is 0
this is misleading because the user starting the revision workflow is the one
first accessing the document
- rejection of document receipts are turned off by default, but can be turned
on in the settings
- documents in DocumentChooser are sorted by name
- instead of just removing a user from all processes it can be replaced by a new user
--------------------------------------------------------------------------------
Changes in version 6.0.6
--------------------------------------------------------------------------------
- fix setting attributes when checking in a new document version
- setting a document revision to 'needs correction' will no longer set the
documents status to 'needѕ correction' if this was turned off in the settings
- a document will not leave draft status when setting the approver/reviewer
without setting a reviewer/approver
- tasks to be counted in menu can be configured
- add number of documents which need correction to menu
- minor 2 factor auth. fixes when initially setting the secret
- remove ѕome unneeded code from AddDocument which just caused php warnings
- do not set the uploader of new documents to owner if the owner is different from
the uploader
- add scheduler
- add hook showVersionComment in out.ViewDocument.php
- Various minor corrections of database tables tblWorkflowLog and
tblWorkflowDocumentContent
- merge changes up to 5.1.7
--------------------------------------------------------------------------------
Changes in version 6.0.5
--------------------------------------------------------------------------------
- sync form for updating document by upload and checkin
- add list of documents which need correction on MyDocuments page
--------------------------------------------------------------------------------
Changes in version 6.0.4
--------------------------------------------------------------------------------
- merge changes up to 5.1.5
--------------------------------------------------------------------------------
Changes in version 6.0.3
--------------------------------------------------------------------------------
- add list of documents without a receiver on MyDocuments page
- propperly calculate number of documents for each value of value set in attribute mgr
- output of progress bar for reception of a document can be controlled by access list
- recipientof a document version can be set when uploading the file
- fix export of search and display of 2nd, 3rd, ... search page
- speed up creation of document lists if reception progress bar is shown
- status of rejected documents can be overriden
- do not add users from group as recipients if they are the uploader or reviewer
of a document
- add list of documents without a receiver, list of drafts, and list of absolete
documents on MyDocuments page
- add callback onCheckAccessDocument to SeedDMS_Core_Document
- add new document status 'needs correction', revised documents which do not pass
will no longer be in status 'rejected' but 'needs correction'
- better error handling when indexing documents fails
- apache xsendfile module is used for downloading documents when installed
- add view access check for ApprovalSummary, ReviewSummary, ReceiptSummary,
WorkflowSummary, DocumentAccess, GroupView, UsrView, WorkflowSummary
- filter out reviewers and uploader of a document version when setting recipients
by user group
--------------------------------------------------------------------------------
Changes in version 6.0.2
--------------------------------------------------------------------------------
- check if user has access on document and is not disabled if set as
receiver, revisor
- check if group has members if set as reviewer, approver, receiver, revisor
- fix bug in notification of approver after successful review
- add document check for docs in revision and missing access rights of revisor
- add document check for docs requiring receptions but user lacks access right
- fix Acl manager when using pgsql
- list all open tasks of user in user info of user manager
- owner of document may see review/approval/receipt/revision log
- fix sending mails to reviewer/approvers after check in
- downloading of review/approval files works again
- optimizing retrieval of open tasks
- do not show user which has been removed from a process except for admins
- show scheduled revisions in calendar
- merge changes up to 5.1.5
--------------------------------------------------------------------------------
Changes in version 6.0.1
--------------------------------------------------------------------------------
- call hook 'rawcontent' when downloading transmittal list or search content
- speed up list of locked documents on MyDocuments page
- sql queries and execution times can be written to file in database layer
--------------------------------------------------------------------------------
Changes in version 6.0.0
--------------------------------------------------------------------------------
- merge changes up to 5.0.10
- filter documents by status 'draft' on search page
- list of documents to look at now contains documents in revision
- add list of documents waiting for reception on MyDocuments page
- group document lists on MyDocuments page into three sections
- show progressbar and comments for reception of document in documentlist
- restructure page for document/folder check, add check for missing access
on documents by recipient or revisor
- overhaul revision workflow, add hook after revision workflow was finished
- add two factor authentication based on google authenticator
- set timeout for ajax call 'mytasks' from 200ms to 1000ms
- use a similar layout for document list on the ViewDocument page
- add RSS feed of timeline
- put more operations under access control
- add receipent list for documents
- add revision of documents
- add substitute user command for regular users
- add access controll list for many functions
- add document list which can be exported as an archive
- search results can be exported
--------------------------------------------------------------------------------
Changes in version 5.1.37
--------------------------------------------------------------------------------

View File

@ -11,6 +11,8 @@
"slim/slim": "^3.0",
"erusev/parsedown": "*",
"erusev/parsedown-extra": "*",
"mibe/feedwriter": "^1.1",
"phpoffice/phpspreadsheet": "*",
"pear/log": "*",
"pear/mail": "*",
"pear/mail_mime": "*",
@ -18,6 +20,7 @@
"pear/auth_sasl": "*",
"pear/db": "*",
"alecrabbit/php-console-colour": "*",
"dragonmantank/cron-expression": "^3",
"zf1/zend-search-lucene": "*",
"symfony/http-foundation": "^5.4",
"seeddms/core": "dev-master",

View File

@ -296,7 +296,7 @@
updateNotifyTime = "86400"
extraPath = ""
maxExecutionTime = "30"
cmdTimeout = "1"
cmdTimeout = "10"
/>
<!--
- enableNotificationAppRev: set to true if reviewers and approvers shall be informed about a pending review/approval

View File

@ -52,6 +52,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
$sequence = $this->getParam('sequence');
$reviewers = $this->getParam('reviewers');
$approvers = $this->getParam('approvers');
$recipients = $this->getParam('recipients');
$reqversion = $this->getParam('reqversion');
$version_comment = $this->getParam('versioncomment');
$attributes = $this->getParam('attributes');
@ -160,6 +161,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
$workflow = $this->getParam('workflow');
$notificationgroups = $this->getParam('notificationgroups');
$notificationusers = $this->getParam('notificationusers');
$initialdocumentstatus = $this->getParam('initialdocumentstatus');
$maxsizeforfulltext = $this->getParam('maxsizeforfulltext');
$defaultaccessdocs = $this->getParam('defaultaccessdocs');
@ -170,7 +172,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
$cats, $userfiletmp, utf8_basename($userfilename),
$filetype, $userfiletype, $sequence,
$reviewers, $approvers, $reqversion,
$version_comment, $attributes, $attributes_version, $workflow);
$version_comment, $attributes, $attributes_version, $workflow, $initialdocumentstatus);
if (is_bool($res) && !$res) {
$this->errormsg = "error_occured";
@ -187,6 +189,24 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
}
}
$lc = $document->getLatestContent();
if($recipients) {
if($recipients['i']) {
foreach($recipients['i'] as $uid) {
if($u = $dms->getUser($uid)) {
$res = $lc->addIndRecipient($u, $user);
}
}
}
if($recipients['g']) {
foreach($recipients['g'] as $gid) {
if($g = $dms->getGroup($gid)) {
$res = $lc->addGrpRecipient($g, $user);
}
}
}
}
/* Add a default notification for the owner of the document */
if($settings->_enableOwnerNotification) {
$res = $document->addNotify($owner->getID(), true);

View File

@ -40,62 +40,76 @@ class SeedDMS_Controller_ApproveDocument extends SeedDMS_Controller_Common {
$this->oldstatus = $overallStatus['status'];
$this->newstatus = $this->oldstatus;
if ($approvaltype == "ind") {
$approvalLogID = $content->setApprovalByInd($user, $user, $approvalstatus, $approvalcomment, $approvalfile);
} elseif ($approvaltype == "grp") {
$approvalLogID = $content->setApprovalByGrp($approvalgroup, $user, $approvalstatus, $approvalcomment, $approvalfile);
} else {
$this->errormsg = "approval_wrong_type";
return false;
}
if($approvalLogID === false || 0 > $approvalLogID) {
$this->errormsg = "approval_update_failed";
return false;
if(!$this->callHook('preApproveDocument', $content)) {
}
if($approvalstatus == -1) {
$this->newstatus = S_REJECTED;
if($content->setStatus(S_REJECTED, $approvalcomment, $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['approveDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['approveDocument'] as $hookObj) {
if (method_exists($hookObj, 'postApproveDocument')) {
$hookObj->postApproveDocument(null, $content, S_REJECTED);
}
}
}
}
} else {
$docApprovalStatus = $content->getApprovalStatus();
if (is_bool($docApprovalStatus) && !$docApprovalStatus) {
$this->errormsg = "cannot_retrieve_approval_snapshot";
$result = $this->callHook('approveDocument', $content);
if($result === null) {
if ($approvaltype == "ind") {
$approvalLogID = $content->setApprovalByInd($user, $user, $approvalstatus, $approvalcomment, $approvalfile);
} elseif ($approvaltype == "grp") {
$approvalLogID = $content->setApprovalByGrp($approvalgroup, $user, $approvalstatus, $approvalcomment, $approvalfile);
} else {
$this->errormsg = "approval_wrong_type";
return false;
}
$approvalCT = 0;
$approvalTotal = 0;
foreach ($docApprovalStatus as $drstat) {
if ($drstat["status"] == 1) {
$approvalCT++;
}
if ($drstat["status"] != -2) {
$approvalTotal++;
}
if($approvalLogID === false || 0 > $approvalLogID) {
$this->errormsg = "approval_update_failed";
return false;
}
// If all approvals have been received and there are no rejections, retrieve a
// count of the approvals required for this document.
if ($approvalCT == $approvalTotal) {
// Change the status to released.
$this->newstatus=S_RELEASED;
if($content->setStatus($this->newstatus, getMLText("automatic_status_update"), $user)) {
}
$result = $this->callHook('approveUpdateDocumentStatus', $content);
if($result === null) {
if($approvalstatus == -1) {
$this->newstatus = S_REJECTED;
if($content->setStatus(S_REJECTED, $approvalcomment, $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['approveDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['approveDocument'] as $hookObj) {
if (method_exists($hookObj, 'postApproveDocument')) {
$hookObj->postApproveDocument(null, $content, S_RELEASED);
$hookObj->postApproveDocument(null, $content, S_REJECTED);
}
}
}
}
} else {
$docApprovalStatus = $content->getApprovalStatus();
if (is_bool($docApprovalStatus) && !$docApprovalStatus) {
$this->errormsg = "cannot_retrieve_approval_snapshot";
return false;
}
$approvalCT = 0;
$approvalTotal = 0;
foreach ($docApprovalStatus as $drstat) {
if ($drstat["status"] == 1) {
$approvalCT++;
}
if ($drstat["status"] != -2) {
$approvalTotal++;
}
}
// If all approvals have been received and there are no rejections, retrieve a
// count of the approvals required for this document.
if ($approvalCT == $approvalTotal) {
// Change the status to released.
$this->newstatus=S_RELEASED;
if($content->setStatus($this->newstatus, getMLText("automatic_status_update"), $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['approveDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['approveDocument'] as $hookObj) {
if (method_exists($hookObj, 'postApproveDocument')) {
$hookObj->postApproveDocument(null, $content, S_RELEASED);
}
}
}
}
}
}
}
if(!$this->callHook('postApproveDocument', $content)) {
}
return true;
} /* }}} */
}

View File

@ -0,0 +1,114 @@
<?php
/**
* Implementation of CheckInDocument controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2024 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for downloading a document
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2024 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_CheckInDocument extends SeedDMS_Controller_Common {
public function run() { /* {{{ */
$name = $this->getParam('name');
$comment = $this->getParam('comment');
/* Call preCheckInDocument early, because it might need to modify some
* of the parameters.
*/
if(false === $this->callHook('preCheckInDocument', $this->params['document'])) {
if(empty($this->errormsg))
$this->errormsg = 'hook_preCheckInDocument_failed';
return null;
}
$comment = $this->getParam('comment');
$dms = $this->params['dms'];
$user = $this->params['user'];
$document = $this->params['document'];
$settings = $this->params['settings'];
$fulltextservice = $this->params['fulltextservice'];
$folder = $this->params['folder'];
$userfiletmp = $this->getParam('userfiletmp');
$userfilename = $this->getParam('userfilename');
$filetype = $this->getParam('filetype');
$userfiletype = $this->getParam('userfiletype');
$reviewers = $this->getParam('reviewers');
$approvers = $this->getParam('approvers');
$recipients = $this->getParam('recipients');
$reqversion = $this->getParam('reqversion');
$comment = $this->getParam('comment');
$attributes = $this->getParam('attributes');
$workflow = $this->getParam('workflow');
$maxsizeforfulltext = $this->getParam('maxsizeforfulltext');
$initialdocumentstatus = $this->getParam('initialdocumentstatus');
$content = $this->callHook('checkinDocument');
if($content === null) {
if($contentResult=$document->checkIn($comment, $user, $reviewers, $approvers, $version=0, $attributes, $workflow, $initialdocumentstatus)) {
if ($this->hasParam('expires')) {
if($document->setExpires($this->getParam('expires'))) {
} else {
}
}
if(!empty($recipients['i'])) {
foreach($recipients['i'] as $uid) {
if($u = $dms->getUser($uid)) {
$res = $contentResult->getContent()->addIndRecipient($u, $user);
}
}
}
if(!empty($recipients['g'])) {
foreach($recipients['g'] as $gid) {
if($g = $dms->getGroup($gid)) {
$res = $contentResult->getContent()->addGrpRecipient($g, $user);
}
}
}
$content = $contentResult->getContent();
} else {
$this->errormsg = 'error_checkin_document';
$result = false;
}
} elseif($result === false) {
if(empty($this->errormsg))
$this->errormsg = 'hook_checkinDocument_failed';
return false;
}
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $content) {
$idoc = $fulltextservice->IndexedDocument($document);
if(false !== $this->callHook('preIndexDocument', $document, $idoc)) {
$lucenesearch = $fulltextservice->Search();
if($hit = $lucenesearch->getDocument((int) $document->getId())) {
$index->delete($hit->id);
}
$index->addDocument($idoc);
$index->commit();
}
}
if(false === $this->callHook('postCheckInDocument', $document, $content)) {
}
return $content;
} /* }}} */
}

108
controllers/class.Cron.php Normal file
View File

@ -0,0 +1,108 @@
<?php
/**
* Implementation of Cron controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2020 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for the regular cron job
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2020 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_Cron extends SeedDMS_Controller_Common {
public function run() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
$settings = $this->params['settings'];
$logger = $this->params['logger'];
$mode = $this->params['mode'];
$seltask = $this->params['task'];
$db = $dms->getDb();
$scheduler = new SeedDMS_Scheduler($db);
$tasks = $scheduler->getTasks();
$jsonarr = [];
foreach($tasks as $task) {
if($seltask && $seltask != $task->getExtension()."::".$task->getTask())
continue;
if(isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()]) && is_object($taskobj = resolveTask($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()][$task->getTask()]))) {
$arr = array(
'extension'=>$task->getExtension(),
'name'=>$task->getTask(),
'mode'=>$mode,
'disabled' => (bool) $task->getDisabled(),
'isdue' => $task->isDue(),
);
switch($mode) {
case "run":
case "dryrun":
if(method_exists($taskobj, 'execute')) {
if(!$task->getDisabled() && $task->isDue()) {
if($mode == 'run') {
/* Schedule the next run right away to prevent a second execution
* of the task when the cron job of the scheduler is called before
* the last run was finished. The task itself can still be scheduled
* to fast, but this is up to the admin of seeddms.
*/
$task->updateLastNextRun();
if($taskobj->execute($task)) {
add_log_line("Execution of task ".$task->getExtension()."::".$task->getTask()." successful.");
$arr['success'] = true;
} else {
add_log_line("Execution of task ".$task->getExtension()."::".$task->getTask()." failed, task has been disabled.", PEAR_LOG_ERR);
$arr['success'] = false;
$task->setDisabled(1);
}
} elseif($mode == 'dryrun') {
$arr['success'] = true;
}
}
}
break;
case "check":
$arr['error'] = false;
if(!method_exists($taskobj, 'execute')) {
$arr['error'] = true;
$arr['messages'][] = 'Missing method execute()';
}
if(get_parent_class($taskobj) != 'SeedDMS_SchedulerTaskBase') {
$arr['error'] = true;
$arr['error'][] = "Wrong parent class";
}
break;
case "list":
default:
header("Content-Type: application/json");
$arr['nextrun']=$task->getNextRun();
$arr['frequency']=$task->getFrequency();
$arr['params']=array();
if($params = $task->getParameter()) {
foreach($params as $key=>$value) {
$p = $taskobj->getAdditionalParamByName($key);
$arr['params'][$key] = ($p['type'] == 'password') ? '*******' : $value;
}
}
break;
}
$jsonarr[] = $arr;
}
}
echo json_encode($jsonarr);
return true;
} /* }}} */
}

View File

@ -22,49 +22,192 @@
*/
class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
public function run() {
public function version() { /* {{{ */
$dms = $this->params['dms'];
$version = $this->params['version'];
$document = $this->params['document'];
if($version < 1) {
$content = $this->callHook('documentLatestContent', $document);
if($content === null)
$content = $document->getLatestContent();
} else {
$content = $this->callHook('documentContent', $document, $version);
if($content === null)
$content = $document->getContentByVersion($version);
}
if (!is_object($content)) {
$this->errormsg = 'invalid_version';
return false;
}
/* set params['content'] for compatiblity with older extensions which
* expect the content in the controller
*/
$this->params['content'] = $content;
if(null === $this->callHook('version')) {
if(file_exists($dms->contentDir . $content->getPath())) {
header("Content-Transfer-Encoding: binary");
$efilename = rawurlencode($content->getOriginalFileName());
header("Content-Disposition: attachment; filename=\"" . $efilename . "\"; filename*=UTF-8''".$efilename);
header("Content-Type: " . $content->getMimeType());
header("Cache-Control: must-revalidate");
header("ETag: ".$content->getChecksum());
sendFile($dms->contentDir . $content->getPath());
}
}
return true;
} /* }}} */
public function file() { /* {{{ */
$dms = $this->params['dms'];
$file = $this->params['file'];
if(null === $this->callHook('file')) {
if(file_exists($dms->contentDir . $file->getPath())) {
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=\"" . $file->getOriginalFileName() . "\"");
header("Content-Type: " . $file->getMimeType());
header("Cache-Control: must-revalidate");
sendFile($dms->contentDir . $file->getPath());
}
}
return true;
} /* }}} */
public function archive() { /* {{{ */
$dms = $this->params['dms'];
$filename = $this->params['file'];
$basedir = $this->params['basedir'];
if(null === $this->callHook('archive')) {
if(file_exists($basedir . $filename)) {
header('Content-Description: File Transfer');
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: public");
sendFile($basedir .$filename );
}
}
return true;
} /* }}} */
public function log() { /* {{{ */
$dms = $this->params['dms'];
$filename = $this->params['file'];
$basedir = $this->params['basedir'];
if(null === $this->callHook('log')) {
if(file_exists($basedir . $filename)) {
header("Content-Type: text/plain; name=\"" . $filename . "\"");
header("Content-Transfer-Encoding: binary");
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: must-revalidate");
sendFile($basedir.$filename);
}
}
return true;
} /* }}} */
public function sqldump() { /* {{{ */
$dms = $this->params['dms'];
$filename = $this->params['file'];
$basedir = $this->params['basedir'];
if(null === $this->callHook('sqldump')) {
if(file_exists($basedir . $filename)) {
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: must-revalidate");
sendFile($basedir.$filename);
}
}
return true;
} /* }}} */
public function approval() { /* {{{ */
$dms = $this->params['dms'];
$document = $this->params['document'];
$logid = $this->params['approvelogid'];
$filename = $dms->contentDir . $document->getDir().'a'.$logid;
if (!file_exists($filename) ) {
$this->error = 1;
return false;
}
if(null === $this->callHook('approval')) {
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mimetype = finfo_file($finfo, $filename);
header("Content-Type: ".$mimetype);
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=\"approval-" . $document->getID()."-".(int) $_GET['approvelogid'] . get_extension($mimetype) . "\"");
header("Cache-Control: must-revalidate");
sendFile($filename);
}
return true;
} /* }}} */
public function review() { /* {{{ */
$dms = $this->params['dms'];
$document = $this->params['document'];
$logid = $this->params['reviewlogid'];
$filename = $dms->contentDir . $document->getDir().'r'.$logid;
if (!file_exists($filename) ) {
$this->error = 1;
return false;
}
if(null === $this->callHook('review')) {
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mimetype = finfo_file($finfo, $filename);
header("Content-Type: ".$mimetype);
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($filename ));
header("Content-Disposition: attachment; filename=\"review-" . $document->getID()."-".(int) $_GET['reviewlogid'] . get_extension($mimetype) . "\"");
header("Cache-Control: must-revalidate");
sendFile($filename);
}
return true;
} /* }}} */
public function run() { /* {{{ */
$dms = $this->params['dms'];
$type = $this->params['type'];
switch($type) {
case "version":
if(empty($this->params['content'])) {
$version = $this->params['version'];
$document = $this->params['document'];
if($version < 1) {
$content = $this->callHook('documentLatestContent', $document);
if($content === null)
$content = $document->getLatestContent();
} else {
$content = $this->callHook('documentContent', $document, $version);
if($content === null)
$content = $document->getContentByVersion($version);
}
if (!is_object($content)) {
$this->errormsg = 'invalid_version';
return false;
}
/* set params['content'] for compatiblity with older extensions which
* expect the content in the controller
*/
$this->params['content'] = $content;
} else {
$content = $this->params['content'];
}
if(null === $this->callHook('version')) {
if(file_exists($dms->contentDir . $content->getPath())) {
header("Content-Transfer-Encoding: binary");
$efilename = rawurlencode($content->getOriginalFileName());
header("Content-Disposition: attachment; filename=\"" . $efilename . "\"; filename*=UTF-8''".$efilename);
header("Content-Type: " . $content->getMimeType());
header("Cache-Control: must-revalidate");
header("ETag: ".$content->getChecksum());
sendFile($dms->contentDir.$content->getPath());
}
}
return $this->version();
break;
case "file":
return $this->file();
break;
case "archive":
return $this->archive();
break;
case "log":
return $this->log();
break;
case "sqldump":
return $this->sqldump();
break;
case "approval":
return $this->approval();
break;
case "review":
return $this->review();
break;
}
return true;
}
} /* }}} */
}

View File

@ -64,6 +64,16 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common {
return false;
}
if($settings->_enable2FactorAuthentication) {
if($user->getSecret()) {
$tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS');
if($tfa->verifyCode($user->getSecret(), $_POST['twofactauth']) !== true) {
$this->setErrorMsg("login_error_text");
return false;
}
}
}
/* Run any additional checks which may prevent login */
if(false === $this->callHook('restrictLogin', $user)) {
if(empty($this->errormsg))

View File

@ -0,0 +1,67 @@
<?php
/**
* Implementation of ReceiptDocument controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for downloading a document
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_ReceiptDocument extends SeedDMS_Controller_Common {
public function run() {
$dms = $this->params['dms'];
$user = $this->params['user'];
$settings = $this->params['settings'];
$document = $this->params['document'];
$content = $this->params['content'];
$receiptstatus = $this->params['receiptstatus'];
$receipttype = $this->params['receipttype'];
$group = $this->params['group'];
$comment = $this->params['comment'];
/* Get the document id and name before removing the document */
$docname = $document->getName();
$documentid = $document->getID();
if(!$this->callHook('preReceiptDocument', $content)) {
}
$result = $this->callHook('receiptDocument', $content);
if($result === null) {
if ($receipttype == "ind") {
if(0 > $content->setReceiptByInd($user, $user, $receiptstatus, $comment)) {
$this->error = 1;
$this->errormsg = "receipt_update_failed";
return false;
}
} elseif ($receipttype == "grp") {
if(0 > $content->setReceiptByGrp($group, $user, $receiptstatus, $comment)) {
$this->error = 1;
$this->errormsg = "receipt_update_failed";
return false;
}
}
}
if(!$this->callHook('postReceiptDocument', $content)) {
}
return true;
}
}

View File

@ -36,83 +36,96 @@ class SeedDMS_Controller_ReviewDocument extends SeedDMS_Controller_Common {
$this->oldstatus = $overallStatus['status'];
$this->newstatus = $this->oldstatus;
if ($reviewtype == "ind") {
$reviewLogID = $content->setReviewByInd($user, $user, $reviewstatus, $reviewcomment, $reviewfile);
} elseif($reviewtype == "grp") {
$reviewLogID = $content->setReviewByGrp($reviewgroup, $user, $reviewstatus, $reviewcomment, $reviewfile);
} else {
$this->errormsg = "review_wrong_type";
return false;
}
if($reviewLogID === false || 0 > $reviewLogID) {
$this->errormsg = "review_update_failed";
return false;
if(!$this->callHook('preReviewDocument', $content)) {
}
if($reviewstatus == -1) {
$this->newstatus = S_REJECTED;
if($content->setStatus(S_REJECTED, $reviewcomment, $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'] as $hookObj) {
if (method_exists($hookObj, 'postReviewDocument')) {
$hookObj->postReviewDocument(null, $content, S_REJECTED);
}
}
}
}
} else {
$docReviewStatus = $content->getReviewStatus();
if (is_bool($docReviewStatus) && !$docReviewStatus) {
$this->errormsg = "cannot_retrieve_review_snapshot";
$result = $this->callHook('reviewDocument', $content);
if($result === null) {
if ($reviewtype == "ind") {
$reviewLogID = $content->setReviewByInd($user, $user, $reviewstatus, $reviewcomment, $reviewfile);
} elseif($reviewtype == "grp") {
$reviewLogID = $content->setReviewByGrp($reviewgroup, $user, $reviewstatus, $reviewcomment, $reviewfile);
} else {
$this->errormsg = "review_wrong_type";
return false;
}
$reviewCT = 0;
$reviewTotal = 0;
foreach ($docReviewStatus as $drstat) {
if ($drstat["status"] == 1) {
$reviewCT++;
}
if ($drstat["status"] != -2) {
$reviewTotal++;
}
if($reviewLogID === false || 0 > $reviewLogID) {
$this->errormsg = "review_update_failed";
return false;
}
// If all reviews have been received and there are no rejections, retrieve a
// count of the approvals required for this document.
if ($reviewCT == $reviewTotal) {
$docApprovalStatus = $content->getApprovalStatus();
if (is_bool($docApprovalStatus) && !$docApprovalStatus) {
$this->errormsg = "cannot_retrieve_approval_snapshot";
return false;
}
$approvalCT = 0;
$approvalTotal = 0;
foreach($docApprovalStatus as $dastat) {
if($dastat["status"] == 1) {
$approvalCT++;
}
if($dastat["status"] != -2) {
$approvalTotal++;
}
}
// If the approvals received is less than the approvals total, then
// change status to pending approval.
if($approvalCT < $approvalTotal) {
$this->newstatus = S_DRAFT_APP;
} else {
// Otherwise, change the status to released.
$this->newstatus = S_RELEASED;
}
if($content->setStatus($this->newstatus, getMLText("automatic_status_update"), $user)) {
}
$result = $this->callHook('reviewUpdateDocumentStatus', $content);
if($result === null) {
if($reviewstatus == -1) {
$this->newstatus = S_REJECTED;
if($content->setStatus(S_REJECTED, $reviewcomment, $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'] as $hookObj) {
if (method_exists($hookObj, 'postReviewDocument')) {
$hookObj->postReviewDocument(null, $content, $this->newstatus);
$hookObj->postReviewDocument(null, $content, S_REJECTED);
}
}
}
}
} else {
$docReviewStatus = $content->getReviewStatus();
if (is_bool($docReviewStatus) && !$docReviewStatus) {
$this->errormsg = "cannot_retrieve_review_snapshot";
return false;
}
$reviewCT = 0;
$reviewTotal = 0;
foreach ($docReviewStatus as $drstat) {
if ($drstat["status"] == 1) {
$reviewCT++;
}
if ($drstat["status"] != -2) {
$reviewTotal++;
}
}
// If all reviews have been received and there are no rejections, retrieve a
// count of the approvals required for this document.
if ($reviewCT == $reviewTotal) {
$docApprovalStatus = $content->getApprovalStatus();
if (is_bool($docApprovalStatus) && !$docApprovalStatus) {
$this->errormsg = "cannot_retrieve_approval_snapshot";
return false;
}
$approvalCT = 0;
$approvalTotal = 0;
foreach($docApprovalStatus as $dastat) {
if($dastat["status"] == 1) {
$approvalCT++;
}
if($dastat["status"] != -2) {
$approvalTotal++;
}
}
// If the approvals received is less than the approvals total, then
// change status to pending approval.
if($approvalCT < $approvalTotal) {
$this->newstatus = S_DRAFT_APP;
} else {
// Otherwise, change the status to released.
$this->newstatus = S_RELEASED;
}
if($content->setStatus($this->newstatus, getMLText("automatic_status_update"), $user)) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['reviewDocument'] as $hookObj) {
if (method_exists($hookObj, 'postReviewDocument')) {
$hookObj->postReviewDocument(null, $content, $this->newstatus);
}
}
}
}
}
}
}
if(!$this->callHook('postReviewDocument', $content)) {
}
return true;
} /* }}} */
}

View File

@ -0,0 +1,143 @@
<?php
/**
* Implementation of ReviseDocument controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for downloading a document
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_ReviseDocument extends SeedDMS_Controller_Common {
public $oldstatus;
public $newstatus;
public function run() {
$dms = $this->params['dms'];
$user = $this->params['user'];
$settings = $this->params['settings'];
$document = $this->params['document'];
$content = $this->params['content'];
$revisionstatus = $this->params['revisionstatus'];
$revisiontype = $this->params['revisiontype'];
$group = $this->params['group'];
$comment = $this->params['comment'];
$overallStatus = $content->getStatus();
$this->oldstatus = $overallStatus['status'];
$this->newstatus = $this->oldstatus;
/* if set to true, a single reject will reject the doc. If set to false
* all revisions will be collected first and afterwards the doc is rejected
* if one has rejected it. So in the very end the doc is rejected, but
* doc remainѕ in S_IN_REVISION until all have revised the doc
*/
$onevotereject = $this->params['onevotereject'];
/* Get the document id and name before removing the document */
$docname = $document->getName();
$documentid = $document->getID();
if(!$this->callHook('preReviseDocument', $content)) {
}
$result = $this->callHook('reviseDocument', $content);
if($result === null) {
if ($revisiontype == "ind") {
if(0 > $content->setRevision($user, $user, $revisionstatus, $comment)) {
$this->error = 1;
$this->errormsg = "revision_update_failed";
return false;
}
} elseif ($revisiontype == "grp") {
if(0 > $content->setRevision($group, $user, $revisionstatus, $comment)) {
$this->error = 1;
$this->errormsg = $ll."revision_update_failed";
return false;
}
}
}
/* Check to see if the overall status for the document version needs to be
* updated.
*/
$result = $this->callHook('reviseUpdateDocumentStatus', $content);
if($result === null) {
if ($onevotereject && $revisionstatus == -1){
$this->newstatus = S_NEEDS_CORRECTION;
if(!$content->setStatus(S_NEEDS_CORRECTION,$comment,$user)) {
$this->error = 1;
$this->errormsg = "revision_update_failed";
return false;
}
} else {
$docRevisionStatus = $content->getRevisionStatus();
if (is_bool($docRevisionStatus) && !$docRevisionStatus) {
$this->error = 1;
$this->errormsg = "cannot_retrieve_revision_snapshot";
return false;
}
$revisionok = 0;
$revisionnotok = 0;
$revisionTotal = 0;
foreach ($docRevisionStatus as $drstat) {
if ($drstat["status"] == 1) {
$revisionok++;
}
if ($drstat["status"] == -1) {
$revisionnotok++;
}
if ($drstat["status"] != -2) {
$revisionTotal++;
}
}
// If all revisions have been done and there are no rejections,
// then release the document. If all revisions have been done but some
// of them were rejections then documents needs correction.
// Otherwise put it back into revision workflow
if ($revisionok == $revisionTotal) {
$this->newstatus=S_RELEASED;
if ($content->finishRevision($user, $this->newstatus, 'Finished revision workflow', getMLText("automatic_status_update"))) {
if(!$this->callHook('finishReviseDocument', $content)) {
}
}
} elseif (($revisionok + $revisionnotok) == $revisionTotal) {
$this->newstatus=S_NEEDS_CORRECTION;
// if ($content->finishRevision($user, $this->newstatus, 'Finished revision workflow', getMLText("automatic_status_update"))) {
if(!$content->setStatus($this->newstatus,$comment,$user)) {
$this->error = 1;
$this->errormsg = "revision_update_failed";
return false;
}
} else {
$this->newstatus=S_IN_REVISION;
if(!$content->setStatus($this->newstatus,$comment,$user)) {
$this->error = 1;
$this->errormsg = "revision_update_failed";
return false;
}
}
}
}
if(!$this->callHook('postReviseDocument', $content)) {
}
return true;
}
}

View File

@ -0,0 +1,56 @@
<?php
/**
* Implementation of Role manager controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for role manager
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_RoleMgr extends SeedDMS_Controller_Common {
public function run() {
}
public function addrole() {
$dms = $this->params['dms'];
$name = $this->params['name'];
$role = $this->params['role'];
return($dms->addRole($name, $role));
}
public function removerole() {
$roleobj = $this->params['roleobj'];
return $roleobj->remove();
}
public function editrole() {
$dms = $this->params['dms'];
$name = $this->params['name'];
$role = $this->params['role'];
$roleobj = $this->params['roleobj'];
$noaccess = $this->params['noaccess'];
if ($roleobj->getName() != $name)
$roleobj->setName($name);
if ($roleobj->getRole() != $role)
$roleobj->setRole($role);
$roleobj->setNoAccess($noaccess);
return true;
}
}

View File

@ -0,0 +1,68 @@
<?php
/**
* Implementation of Transmittal Download controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does the busines logic for downloading a transmittal
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Controller_TransmittalDownload extends SeedDMS_Controller_Common {
public function run() {
$dms = $this->params['dms'];
$user = $this->params['user'];
$transmittal = $this->params['transmittal'];
$items = $transmittal->getItems();
if($items) {
include("../inc/inc.ClassDownloadMgr.php");
$downmgr = new SeedDMS_Download_Mgr();
if($extraheader = $this->callHook('extraDownloadHeader'))
$downmgr->addHeader($extraheader);
foreach($items as $item) {
$content = $item->getContent();
$document = $content->getDocument();
if ($document->getAccessMode($user) >= M_READ) {
$extracols = $this->callHook('extraDownloadColumns', $document);
$filename = $this->callHook('filenameDownloadItem', $content);
if($rawcontent = $this->callHook('rawcontent', $content)) {
$downmgr->addItem($content, $extracols, $rawcontent, $filename);
} else
$downmgr->addItem($content, $extracols, null, $filename);
}
}
$filename = tempnam(sys_get_temp_dir(), 'transmittal-download-');
if($filename) {
if($downmgr->createArchive($filename)) {
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($filename));
header("Content-Disposition: attachment; filename=\"export-" .date('Y-m-d') . ".zip\"");
header("Content-Type: application/zip");
header("Cache-Control: must-revalidate");
readfile($filename);
} else {
}
unlink($filename);
}
exit;
}
}
}

View File

@ -48,16 +48,18 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
$userfiletype = $this->getParam('userfiletype');
$reviewers = $this->getParam('reviewers');
$approvers = $this->getParam('approvers');
$recipients = $this->getParam('recipients');
$reqversion = $this->getParam('reqversion');
$comment = $this->getParam('comment');
$attributes = $this->getParam('attributes');
$workflow = $this->getParam('workflow');
$maxsizeforfulltext = $this->getParam('maxsizeforfulltext');
$initialdocumentstatus = $this->getParam('initialdocumentstatus');
$content = $this->callHook('updateDocument');
if($content === null) {
$filesize = SeedDMS_Core_File::fileSize($userfiletmp);
if($contentResult=$document->addContent($comment, $user, $userfiletmp, utf8_basename($userfilename), $filetype, $userfiletype, $reviewers, $approvers, $version=0, $attributes, $workflow)) {
if($contentResult=$document->addContent($comment, $user, $userfiletmp, utf8_basename($userfilename), $filetype, $userfiletype, $reviewers, $approvers, $version=0, $attributes, $workflow, $initialdocumentstatus)) {
if ($this->hasParam('expires')) {
if($document->setExpires($this->getParam('expires'))) {
@ -65,6 +67,21 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
}
}
if(!empty($recipients['i'])) {
foreach($recipients['i'] as $uid) {
if($u = $dms->getUser($uid)) {
$res = $contentResult->getContent()->addIndRecipient($u, $user);
}
}
}
if(!empty($recipients['g'])) {
foreach($recipients['g'] as $gid) {
if($g = $dms->getGroup($gid)) {
$res = $contentResult->getContent()->addGrpRecipient($g, $user);
}
}
}
$content = $contentResult->getContent();
} else {
$this->errormsg = 'error_update_document';

View File

@ -1,3 +1,3 @@
#!/bin/sh
# This command retrieves the strings that need to be translated
sgrep -o "%r\n" '"getMLText(\"" __ "\""' */*.php|sort|uniq -c
sgrep -o "%r\n" '"getMLText(\"" __ "\""' */*.php views/bootstrap/*.php |sort|uniq -c

View File

@ -1,7 +1,7 @@
<?php
/* Determine all languages keys used in the php files */
$output = array();
if(exec('sgrep -o "%r\n" \'"tMLText(\"" __ "\""\' */*.php|sort|uniq -c', $output)) {
if(exec('sgrep -o "%r\n" \'"tMLText(\"" __ "\""\' */*.php views/bootstrap/*.php|sort|uniq -c', $output)) {
$allkeys = array();
foreach($output as $line) {
$data = explode(' ', trim($line));
@ -9,8 +9,9 @@ if(exec('sgrep -o "%r\n" \'"tMLText(\"" __ "\""\' */*.php|sort|uniq -c', $output
}
}
$languages = array('ar_EG', 'bg_BG', 'ca_ES', 'cs_CZ', 'de_DE', 'en_GB', 'es_ES', 'fr_FR', 'hu_HU', 'it_IT', 'nl_NL', 'pl_PL', 'pt_BR', 'ro_RO', 'ru_RU', 'sk_SK', 'sv_SE', 'tr_TR', 'zh_CN', 'zh_TW');
/* Reading languages */
foreach(array('en_GB', 'de_DE', 'it_IT', 'sk_SK', 'cs_CZ') as $lang) {
foreach($languages as $lang) {
include('languages/'.$lang.'/lang.inc');
ksort($text);
$langarr[$lang] = $text;
@ -20,7 +21,7 @@ foreach(array('en_GB', 'de_DE', 'it_IT', 'sk_SK', 'cs_CZ') as $lang) {
echo "List of missing keys\n";
echo "-----------------------------\n";
foreach(array_keys($allkeys) as $key) {
foreach(array('en_GB', 'de_DE', 'it_IT', 'sk_SK', 'cs_CZ') as $lang) {
foreach($languages as $lang) {
if(!isset($langarr[$lang][$key])) {
echo "Missing key '".$key."' in language ".$lang."\n";
}
@ -31,7 +32,7 @@ echo "\n";
/* Check for phrases not used anymore */
echo "List of superflous keys\n";
echo "-----------------------------\n";
foreach(array('en_GB', 'de_DE', 'it_IT', 'sk_SK', 'cs_CZ') as $lang) {
foreach($languages as $lang) {
$n = 0;
foreach($langarr[$lang] as $key=>$value) {
if(!isset($allkeys[$key])) {

View File

@ -126,3 +126,28 @@ op/op.TriggerWorkflow.php
op/op.UpdateDocument.php
* document was updated
subscribers of the document
op/op.ReceiptDocument.php
* document was received
subscribers of the document
op/op.ReviseDocument.php
* document was revised
subscribers of the document
op/op.SetRevisors.php
* Revisors were added/deleted
subscribers of the document
uploader of version
revisor
op/op.ReceiptDocument.php
* document was receipt
subscribers of the document
op/op.SetRecipients.php
* Recipients were added/deleted
subscribers of the document
uploader of version
recipient

26
doc/README.Scheduler.md Normal file
View File

@ -0,0 +1,26 @@
Scheduler
==========
The scheduler in SeedDMS manages frequently run tasks. It is very similar
to regular unix cron jobs. A task in SeedDMS is an instanciation of a task
class which itself is defined by an extension or SeedDMS itself.
SeedDMS has some predefined classes e.g. core::expireddocs.
In order for tasks to be runnalbe, a user `cli_scheduler` must exists in
SeedDMS.
All tasks are executed by a single cronjob in the directory `utils`
> */5 * * * * /home/www-data/seeddms60x/seeddms/utils/seeddms-schedulercli --mode=run
Please keep in mind, that the php interpreter used for the cronjob may be
different from the php interpreter used für the web application. Hence, two
different php.ini files might be used. php and the php extensions may differ as
well. This can cause some extensions to be disabled and consequently some task
classes are not defined.
`utils/seeddms-schedulercli` can also be run on the command line. If you
do that, run it with the same system user used for the web server. On Debian
this is www-data. Hence run it like
sudo -u www-data utils/seeddms-schedulercli --mode=list

42
doc/README.cron Normal file
View File

@ -0,0 +1,42 @@
Running the scheduler
======================
Since version 6 of SeedDMS a scheduler is implemented which runs
scheduled tasks. Such tasks must be implemented in an extension
and can be scheduled by the administrator within the user interface.
In order to check frequently for tasks ready to run, a system cron job
must be installed. On Linux this can be done by adding the following line
to the crontab
*/5 * * * * /var/www/seeddms60x/seeddms/utils/seeddms-schedulercli --mode=run
(Of course you need to change the path to `seeddms-schedulercli`)
This will install a cronjob running every 5 minutes. `seeddms-schedulercli` will check
for tasks ready to run and execute them in that case. You can decrease the time between
two calls of the cronjob, but keep in mind that seeddms tasks may take longer and
are being started again before the previous task has been ended.
If the configuration file of SeedDMS is not found, its path can be passed
on the command, though this should not be needed in a regular installation
obeying the directory structure of the quickstart archive.
*/5 * * * * /var/www/seeddms60x/seeddms/utils/seeddms-schedulercli --config /var/www/seeddms60x/seeddms/conf/settings.xml --mode=run
For testing purposes it may be usefull to run `seeddms-schedulercli` in list mode.
seeddms-schedulercli --mode=list
This will just list all tasks and its scheduled exection time. Tasks ready to run,
because its scheduled execution time is already in the past will be marked with
a `*`. Tasks which are disabled will be marked with a `-`.
Executing `seeddms-schedulercli` in `dryrun` mode will behave just like in `run` mode
but instead of running the task it will just issue a line.
Instead of running utils/seeddms-schedulercli you may as well access
op/op.Cron.php which also runs all scheduled tasks. On Linux you do this
by setting up a cronjob like
*/5 * * * * wget -q -O - "http://<your domain>/op/op.Cron.php"

View File

@ -177,7 +177,32 @@ class SeedDMS_ExtExample_ViewFolder {
* @package SeedDMS
* @subpackage example
*/
class SeedDMS_ExtExample_Task {
public function execute() {
class SeedDMS_ExtExample_Task extends SeedDMS_SchedulerTaskBase {
/**
* Run the task
*
* @param $task task to be executed
* @return boolean true if task was executed succesfully, otherwise false
*/
public function execute($task) {
$dms = $this->dms;
$user = $this->user;
$settings = $this->settings;
$logger = $this->logger;
$taskparams = $task->getParameter();
return true;
}
public function getDescription() {
return 'Description';
}
public function getAdditionalParams() {
return array(array(
'name'=>'email',
'type'=>'string',
'description'=> '',
));
}
}

View File

@ -1,7 +1,7 @@
<?php
$EXT_CONF['example'] = array(
'title' => 'Example Extension',
'description' => 'This sample extension demonstrate the use of various hooks',
'description' => 'This sample extension demonstrates the use of various hooks',
'disable' => true,
'version' => '1.0.1',
'releasedate' => '2018-03-21',

View File

@ -1,4 +1,9 @@
<?php
$__lang['de_DE'] = array(
'folder_contents' => 'Dies war mal "Ordner enthält". Wurde von sample Extension geändert.',
'task_example_example_email' => 'Email',
);
$__lang['en_GB'] = array(
'folder_contents' => 'This used to be "Folder contents". Was changed by sample Extension.',
'task_example_example_email' => 'Email',
);

View File

@ -21,17 +21,23 @@ if (!strncmp("/op", $refer, 3)) {
} else {
$refer = urlencode($refer);
}
/* Check if this is a ajax call. In that case do not redirect to any page */
$isajax = isset($_GET['action']) && ($_GET['action'] != 'show');
if (!isset($_COOKIE["mydms_session"])) {
if($settings->_enableGuestLogin && $settings->_enableGuestAutoLogin) {
$session = new SeedDMS_Session($db);
if(!$dms_session = $session->create(array('userid'=>$settings->_guestID, 'theme'=>$settings->_theme, 'lang'=>$settings->_language))) {
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
$resArr = $session->load($dms_session);
} elseif($settings->_autoLoginUser) {
if(!($user = $dms->getUser($settings->_autoLoginUser))/* || !$user->isGuest()*/) {
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
$theme = $user->getTheme();
@ -46,12 +52,14 @@ if (!isset($_COOKIE["mydms_session"])) {
}
$session = new SeedDMS_Session($db);
if(!$dms_session = $session->create(array('userid'=>$user->getID(), 'theme'=>$theme, 'lang'=>$lang))) {
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
$resArr = $session->load($dms_session);
} else {
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
} else {
@ -60,7 +68,8 @@ if (!isset($_COOKIE["mydms_session"])) {
$session = new SeedDMS_Session($db);
if(!$resArr = $session->load($dms_session)) {
setcookie("mydms_session", $dms_session, time()-3600, $settings->_httpRoot); //delete cookie
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
}
@ -73,13 +82,16 @@ if((int)$resArr['lastAccess']+60 < time())
$user = $dms->getUser($resArr["userID"]);
if (!is_object($user)) {
setcookie("mydms_session", $dms_session, time()-3600, $settings->_httpRoot); //delete cookie
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
if(!$isajax)
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
if($user->isAdmin()) {
if($resArr["su"]) {
$user = $dms->getUser($resArr["su"]);
$origuser = null;
if($resArr["su"] && $su = $dms->getUser($resArr["su"])) {
if($user->isAdmin() || $user->maySwitchToUser($su)) {
$origuser = $user;
$user = $su;
} else {
// $session->resetSu();
}
@ -92,6 +104,8 @@ if($settings->_useHomeAsRootFolder && !$user->isAdmin() && $user->getHomeFolder(
$dms->checkWithinRootDir = true;
$dms->setRootFolderID($user->getHomeFolder());
}
$role = $user->getRole();
$dms->noReadForStatus = $role->getNoAccess();
/* Include additional language file for view
* This file must set $LANG[xx][]
@ -100,13 +114,17 @@ if(file_exists($settings->_rootDir . "view/".$theme."/languages/" . $lang . "/la
include $settings->_rootDir . "view/".$theme."/languages/" . $lang . "/lang.inc";
}
/* if this is a ajax call, then exit early as the rest of the script is irrelevant */
if($isajax)
return;
/* Check if password needs to be changed because it expired. If it needs
* to be changed redirect to out/out.ForcePasswordChange.php. Do this
* check only if password expiration is turned on, we are not on the
* page to change the password or the page that changes the password, the
* current user is not admin, and no user substitution has occured. */
if (!$user->isAdmin() && !$resArr['su']) {
if (!$user->isAdmin() && $origuser == null) {
if($settings->_passwordExpiration > 0) {
if(basename($_SERVER['SCRIPT_NAME']) != 'out.ForcePasswordChange.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.EditUserData.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.Logout.php') {
$pwdexp = $user->getPwdExpiration();
@ -121,6 +139,17 @@ if (!$user->isAdmin() && !$resArr['su']) {
}
}
/* Check if secret is set for 2-factor authentication. Redirect to Setup2Factor.php
* if secret is not set and 2-factor authentication is turned on. Also check if
* already on the page Setup2Factor.php and no user substiation has occured.
*/
if($settings->_enable2FactorAuthentication && $settings->_guestID != $user->getID() && $settings->_autoLoginUser != $user->getID() && $origuser == null && $user->getSecret() == '') {
if(basename($_SERVER['SCRIPT_NAME']) != 'out.Setup2Factor.php' && basename($_SERVER['SCRIPT_NAME']) != 'op.Setup2Factor.php') {
header("Location: ../out/out.Setup2Factor.php");
exit;
}
}
/* Update cookie lifetime */
if($settings->_cookieLifetime) {
$lifetime = time() + intval($settings->_cookieLifetime);

View File

@ -0,0 +1,41 @@
<?php
/**
* Do authentication of users and session management
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal,
* 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
* @version Release: @package_version@
*/
require_once("inc.Utils.php");
require_once("inc.ClassNotificationService.php");
require_once("inc.ClassEmailNotify.php");
require_once("inc.ClassSession.php");
require_once("inc.ClassAccessOperation.php");
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="'.$settings->_siteName.'"');
header('HTTP/1.0 401 Unauthorized');
echo getMLText('cancel_basic_authentication');
exit;
} else {
if(!($user = $authenticator->authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']))) {
header('WWW-Authenticate: Basic realm="'.$settings->_siteName.'"');
header('HTTP/1.0 401 Unauthorized');
echo getMLText('cancel_basic_authentication');
exit;
}
}
/* Clear login failures if login was successful */
$user->clearLoginFailures();
$dms->setUser($user);
require_once('inc/inc.Notification.php');

View File

@ -11,6 +11,8 @@
* @version Release: @package_version@
*/
require_once "inc.ClassAcl.php";
/**
* Class to check certain access restrictions
*
@ -27,33 +29,32 @@ class SeedDMS_AccessOperation {
*/
private $dms;
/**
* @var object $obj object being accessed
* @access protected
*/
private $obj;
/**
* @var object $user user requesting the access
* @access protected
*/
private $user;
protected $user;
/**
* @var object $settings SeedDMS Settings
* @access protected
*/
private $settings;
protected $settings;
/**
* @var array $legacy_access list of objects with access
* @var object $aro access request object for caching
* @access protected
*/
private $_aro;
/**
* @var array $legacy_access list of objects with access use for view and controller
* @access protected
*/
private $legacy_access;
function __construct($dms, $obj, $user, $settings) { /* {{{ */
function __construct($dms, $user, $settings) { /* {{{ */
$this->dms = $dms;
$this->obj = $obj;
$this->user = $user;
$this->settings = $settings;
$this->legacy_access['guest'] = array(
@ -163,15 +164,15 @@ class SeedDMS_AccessOperation {
* document may delete versions. The admin may even delete a version
* even if is disallowed in the settings.
*/
function mayEditVersion($vno=0) { /* {{{ */
if($this->obj->isType('document')) {
function mayEditVersion($document, $vno=0) { /* {{{ */
if($document->isType('document')) {
if($vno)
$version = $this->obj->getContentByVersion($vno);
$version = $document->getContentByVersion($vno);
else
$version = $this->obj->getLatestContent();
$version = $document->getLatestContent();
if (!isset($this->settings->_editOnlineFileTypes) || !is_array($this->settings->_editOnlineFileTypes) || (!in_array(strtolower($version->getFileType()), $this->settings->_editOnlineFileTypes) && !in_array(strtolower($version->getMimeType()), $this->settings->_editOnlineFileTypes)))
return false;
if ($this->obj->getAccessMode($this->user) == M_ALL || $this->user->isAdmin()) {
if ($document->getAccessMode($this->user) == M_ALL || $this->user->isAdmin()) {
return true;
}
}
@ -187,10 +188,10 @@ class SeedDMS_AccessOperation {
* document may delete versions. The admin may even delete a version
* even if is disallowed in the settings.
*/
function mayRemoveVersion() { /* {{{ */
if($this->obj->isType('document')) {
$versions = $this->obj->getContent();
if ((($this->settings->_enableVersionDeletion && ($this->obj->getAccessMode($this->user, 'removeVersion') == M_ALL)) || $this->user->isAdmin() ) && (count($versions) > 1)) {
function mayRemoveVersion($document) { /* {{{ */
if($document->isType('document')) {
$versions = $document->getContent();
if ((($this->settings->_enableVersionDeletion && ($document->getAccessMode($this->user, 'removeVersion') == M_ALL)) || $this->user->isAdmin() ) && (count($versions) > 1)) {
return true;
}
}
@ -207,11 +208,11 @@ class SeedDMS_AccessOperation {
* The admin may even modify the status
* even if is disallowed in the settings.
*/
function mayOverwriteStatus() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function mayOverrideStatus($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_RELEASED || $status["status"]==S_OBSOLETE )) {
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_DRAFT || $status["status"]==S_RELEASED || $status["status"]==S_REJECTED || $status["status"]==S_OBSOLETE || $status["status"]==S_NEEDS_CORRECTION)) {
return true;
}
}
@ -226,12 +227,13 @@ class SeedDMS_AccessOperation {
* reviewers/approvers is only allowed if version modification is turned on
* in the settings and the document has not been reviewed/approved by any
* user/group already.
* The admin may even set reviewers/approvers if is disallowed in the
* settings.
* The admin may even set reviewers/approvers after the review/approval
* process has been started, but only if _allowChangeRevAppInProcess
* explicitly allows it.
*/
function maySetReviewersApprovers() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function maySetReviewersApprovers($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
$reviewstatus = $latestContent->getReviewStatus();
$hasreview = false;
@ -245,7 +247,49 @@ class SeedDMS_AccessOperation {
if($r['status'] == 1 || $r['status'] == -1)
$hasapproval = true;
}
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (($status["status"]==S_DRAFT_REV && !$hasreview) || ($status["status"]==S_DRAFT_APP && !$hasreview && !$hasapproval))) {
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (($status["status"]==S_DRAFT_REV && (!$hasreview || ($this->user->isAdmin() && $this->settings->_allowChangeRevAppInProcess))) || ($status["status"]==S_DRAFT_APP && ((!$hasreview && !$hasapproval) || ($this->user->isAdmin() && $this->settings->_allowChangeRevAppInProcess))) || $status["status"]==S_DRAFT)) {
return true;
}
}
}
return false;
} /* }}} */
/**
* Check if recipients may be edited
*
* This check can only be done for documents. Setting the document
* recipients is only allowed if version modification is turned on
* in the settings. The
* admin may even set recipients if is disallowed in the
* settings.
*/
function maySetRecipients($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if (($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) >= M_READWRITE)) || $this->user->isAdmin()) {
return true;
}
}
}
return false;
} /* }}} */
/**
* Check if revisors may be edited
*
* This check can only be done for documents. Setting the document
* revisors is only allowed if version modification is turned on
* in the settings. The
* admin may even set revisors if is disallowed in the
* settings.
*/
function maySetRevisors($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_RELEASED || $status["status"]==S_IN_REVISION)) {
return true;
}
}
@ -262,12 +306,12 @@ class SeedDMS_AccessOperation {
* admin may even set the workflow if is disallowed in the
* settings.
*/
function maySetWorkflow() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function maySetWorkflow($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$workflow = $latestContent->getWorkflow();
$workflowstate = $latestContent->getWorkflowState();
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (!$workflow || ($workflowstate && ($workflow->getInitState()->getID() == $workflowstate->getID())))) {
if ((($this->settings->_enableVersionModification && ($document->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (!$workflow || ($workflowstate && ($workflow->getInitState()->getID() == $workflowstate->getID())))) {
return true;
}
}
@ -281,11 +325,11 @@ class SeedDMS_AccessOperation {
* This check can only be done for documents. Setting the documents
* expiration date is only allowed if the document has not been obsoleted.
*/
function maySetExpires() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function maySetExpires($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ((($this->obj->getAccessMode($this->user) == M_ALL) || $this->user->isAdmin()) && ($status["status"]!=S_OBSOLETE)) {
if ((($document->getAccessMode($this->user) >= M_READWRITE) || $this->user->isAdmin()) && ($status["status"]!=S_OBSOLETE)) {
return true;
}
}
@ -302,17 +346,17 @@ class SeedDMS_AccessOperation {
* The admin may set the comment even if is
* disallowed in the settings.
*/
function mayEditComment() { /* {{{ */
if($this->obj->isType('document')) {
if($this->obj->getAccessMode($this->user) < M_READWRITE)
function mayEditComment($document) { /* {{{ */
if($document->isType('document')) {
if($document->getAccessMode($this->user) < M_READWRITE)
return false;
if($this->obj->isLocked()) {
$lockingUser = $this->obj->getLockingUser();
if (($lockingUser->getID() != $this->user->getID()) && ($this->obj->getAccessMode($this->user) != M_ALL)) {
if($document->isLocked()) {
$lockingUser = $document->getLockingUser();
if (($lockingUser->getID() != $this->user->getID()) && ($document->getAccessMode($this->user) != M_ALL)) {
return false;
}
}
if($latestContent = $this->obj->getLatestContent()) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if (($this->settings->_enableVersionModification || $this->user->isAdmin()) && !in_array($status["status"], array(S_OBSOLETE, S_EXPIRED))) {
return true;
@ -330,15 +374,15 @@ class SeedDMS_AccessOperation {
* the settings or the document is still in an approval/review
* or intial workflow step.
*/
function mayEditAttributes() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function mayEditAttributes($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
$workflow = $latestContent->getWorkflow();
$workflowstate = $latestContent->getWorkflowState();
if($this->obj->getAccessMode($this->user) < M_READWRITE)
if($document->getAccessMode($this->user) < M_READWRITE)
return false;
if ($this->settings->_enableVersionModification || in_array($status["status"], array(S_DRAFT_REV, S_DRAFT_APP)) || ($workflow && $workflowstate && $workflow->getInitState()->getID() == $workflowstate->getID())) {
if ($this->settings->_enableVersionModification || in_array($status["status"], array(S_DRAFT_REV, S_DRAFT_APP, S_IN_REVISION)) || ($workflow && $workflowstate && $workflow->getInitState()->getID() == $workflowstate->getID())) {
return true;
}
}
@ -353,11 +397,11 @@ class SeedDMS_AccessOperation {
* review. There are other requirements which are not taken into
* account here.
*/
function mayReview() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function mayReview($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ($status["status"]==S_DRAFT_REV) {
if ($document->getAccessMode($this->user) >= M_READ && $status["status"]==S_DRAFT_REV) {
return true;
}
}
@ -371,9 +415,24 @@ class SeedDMS_AccessOperation {
* A review may only be updated by the user who originaly addedd the
* review and if it is allowed in the settings
*/
function mayUpdateReview($updateUser) { /* {{{ */
if($this->obj->isType('document')) {
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) {
function mayUpdateReview($document, $updateUser) { /* {{{ */
if($document->isType('document')) {
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && $document->getAccessMode($this->user) >= M_READ && !$document->hasExpired()) {
return true;
}
}
return false;
} /* }}} */
/**
* Check if a approval maybe edited
*
* An approval may only be updated by the user who originaly addedd the
* approval and if it is allowed in the settings
*/
function mayUpdateApproval($document, $updateUser) { /* {{{ */
if($document->isType('document')) {
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && $document->getAccessMode($this->user) >= M_READ && !$document->hasExpired()) {
return true;
}
}
@ -389,11 +448,11 @@ class SeedDMS_AccessOperation {
* There are other requirements which are not taken into
* account here.
*/
function mayApprove() { /* {{{ */
if($this->obj->isType('document')) {
if($latestContent = $this->obj->getLatestContent()) {
function mayApprove($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ($status["status"]==S_DRAFT_APP) {
if ($document->getAccessMode($this->user) >= M_READ && $status["status"]==S_DRAFT_APP) {
return true;
}
}
@ -402,14 +461,70 @@ class SeedDMS_AccessOperation {
} /* }}} */
/**
* Check if a approval maybe edited
* Check if document content may be receipted
*
* An approval may only be updated by the user who originaly addedd the
* approval and if it is allowed in the settings
* Reviewing a document content is only allowed if the document was not
* obsoleted. There are other requirements which are not taken into
* account here.
*/
function mayUpdateApproval($updateUser) { /* {{{ */
if($this->obj->isType('document')) {
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) {
function mayReceipt($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ($document->getAccessMode($this->user) >= M_READ && $status["status"]==S_RELEASED) {
return true;
}
}
}
return false;
} /* }}} */
/**
* Check if a review maybe edited
*
* A review may only be updated by the user who originaly addedd the
* review and if it is allowed in the settings
*/
function mayUpdateReceipt($document, $updateUser) { /* {{{ */
if($document->isType('document')) {
if($this->settings->_enableUpdateReceipt && ($updateUser == $this->user) && $document->getAccessMode($this->user) >= M_READ && !$document->hasExpired()) {
return true;
}
}
return false;
} /* }}} */
/**
* Check if document content may be revised
*
* Revising a document content is only allowed if the document was not
* obsoleted. There may be other requirements which are not taken into
* account here.
*/
function mayRevise($document) { /* {{{ */
if($document->isType('document')) {
if($latestContent = $document->getLatestContent()) {
$status = $latestContent->getStatus();
if ($document->getAccessMode($this->user) >= M_READ && $status["status"]!=S_OBSOLETE) {
return true;
}
}
}
return false;
} /* }}} */
/**
* Check if document content may be checked in
*
*
*/
function mayCheckIn($document) { /* {{{ */
if($document->isType('document')) {
$checkoutinfo = $document->getCheckOutInfo();
if(!$checkoutinfo)
return false;
$info = $checkoutinfo[0];
if($this->user->getID() == $info['userID'] || $document->getAccessMode($this->user) == M_ALL) {
return true;
}
}
@ -448,11 +563,44 @@ class SeedDMS_AccessOperation {
return false;
} /* }}} */
protected function check_controller_legacy_access($controller, $get=array()) { /* {{{ */
if($this->user->isAdmin())
return true;
if(is_string($controller)) {
$scripts = array($controller);
} elseif(is_array($controller)) {
$scripts = $controller;
} elseif(is_subclass_of($controller, 'SeedDMS_Controller_Common')) {
$scripts = array($controller->getParam('class'));
} else {
return false;
}
if($this->user->isGuest()) {
$user_allowed = $this->legacy_access['guest'];
} else {
$user_allowed = $this->legacy_access['user'];
}
if(array_intersect($scripts, $user_allowed))
return true;
return false;
} /* }}} */
/**
* Check for access permission on view
*
* This function will always return true because it was added to smooth
* migration from 5.1.x to 6.0.x
* If the parameter $view is an array then each element is considered the
* name of a view and true will be returned if one of them is accessible.
* Whether access is allowed also depends on the currently logged in user
* stored in the view object. If the user is an admin the access
* on a view must be explicitly disallowed. For regular users the access
* must be explicitly allowed.
*
* If advanced access control is turn off, this function will always return
* true for admins and false for other users.
*
* @param mixed $view Instanz of view, name of view or array of view names
* @param string $get query parameters possible containing the element 'action'
@ -460,20 +608,79 @@ class SeedDMS_AccessOperation {
* no specific access right is set, otherwise false
*/
function check_view_access($view, $get=array()) { /* {{{ */
return $this->check_view_legacy_access($view, $get);
if(!$this->settings->_advancedAcl) {
return $this->check_view_legacy_access($view, $get);
}
if(is_string($view)) {
$scripts = array($view);
} elseif(is_array($view)) {
$scripts = $view;
} elseif(is_subclass_of($view, 'SeedDMS_View_Common')) {
$scripts = array($view->getParam('class'));
} else {
return false;
}
$scope = 'Views';
$action = (isset($get['action']) && $get['action']) ? $get['action'] : 'show';
$acl = new SeedDMS_Acl($this->dms);
if(!$this->_aro)
$this->_aro = SeedDMS_Aro::getInstance($this->user->getRole(), $this->dms);
foreach($scripts as $script) {
$aco = SeedDMS_Aco::getInstance($scope.'/'.$script.'/'.$action, $this->dms);
$ll = $acl->check($this->_aro, $aco);
if($ll === 1 && !$this->user->isAdmin() || $ll !== -1 && $this->user->isAdmin())
return true;
}
return false;
} /* }}} */
/**
* Check for access permission on controller
*
* This function will always return true because it was added to smooth
* migration from 5.1.x to 6.0.x
* If the parameter $controller is an array then each element is considered the
* name of a controller and true will be returned if one is accesible.
* If advanced access controll is turn off, this function will return false
* for guest users and true otherwise.
*
* @param mixed $controller Instanz of controller, name of controller or array of controller names
* @param string $get query parameters
* @return boolean true if access is allowed otherwise false
*/
function check_controller_access($controller, $get=array()) { /* {{{ */
return true;
if(!$this->settings->_advancedAcl) {
return $this->check_controller_legacy_access($controller, $get);
/*
if($this->user->isGuest())
return false;
elseif($this->user->isAdmin())
return true;
else {
if($controller == 'AddDocument' && isset($get['action']) && $get['action'] == 'setOwner')
return false;
return true;
}
*/
}
if(is_string($controller)) {
$scripts = array($controller);
} elseif(is_array($controller)) {
$scripts = $controller;
} elseif(is_subclass_of($controller, 'SeedDMS_Controller_Common')) {
$scripts = array($controller->getParam('class'));
} else {
return false;
}
$scope = 'Controllers';
$action = (isset($get['action']) && $get['action']) ? $get['action'] : 'run';
$acl = new SeedDMS_Acl($this->dms);
if(!$this->_aro)
$this->_aro = SeedDMS_Aro::getInstance($this->user->getRole(), $this->dms);
foreach($scripts as $script) {
$aco = SeedDMS_Aco::getInstance($scope.'/'.$script.'/'.$action, $this->dms);
$ll = $acl->check($this->_aro, $aco);
if($ll === 1 && !$this->user->isAdmin() || $ll !== -1 && $this->user->isAdmin())
return true;
}
return false;
} /* }}} */
}

390
inc/inc.ClassAcl.php Normal file
View File

@ -0,0 +1,390 @@
<?php
/**
* Implementation of a access control list.
*
* SeedDMS uses access control list for setting permission,
* on various operations.
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2016 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class to represent an access request object
*
* This class provides a model for access request objects.
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2016 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Acl { /* {{{ */
/**
* @var object $dms reference to dms object.
* @access public
*/
public $_dms;
/**
* Create a new instance of an acl
*
* @param object $dms object of dms
* @return object instance of SeedDMS_Acl
*/
public function __construct($dms) { /* {{{ */
$this->_dms = $dms;
} /* }}} */
/**
* Check if Aro has access on Aco
*
* @param object $aro access request object
* @param object $aco access control object
* @return integer/boolean -1 if access is explictly denied, 1 if access
* is explictly allow, 0 if no access restrictions exists, false if
* an error occured.
*/
public function check($aro, $aco) { /* {{{ */
$db = $this->_dms->getDB();
while($aco) {
$acoid = $aco->getID();
$queryStr = "SELECT * FROM `tblArosAcos` WHERE `aro`=".$aro->getID()." AND `aco`=".$acoid;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return false;
if (count($resArr) == 1)
return((int) $resArr[0]['read']);
$aco = $aco->getParent();
}
return 0;
} /* }}} */
public function toggle($aro, $aco) { /* {{{ */
$db = $this->_dms->getDB();
$queryStr = "SELECT * FROM `tblArosAcos` WHERE `aro`=".$aro->getID()." AND `aco`=".$aco->getID();
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return false;
if (count($resArr) != 1)
return false;
$resArr = $resArr[0];
$newperm = $resArr['read'] == 1 ? -1 : 1;
$queryStr = "UPDATE `tblArosAcos` SET `read`=".$newperm." WHERE `aro`=".$aro->getID()." AND `aco`=".$aco->getID();
if (!$db->getResult($queryStr))
return false;
return true;
} /* }}} */
public function add($aro, $aco, $perm=-1) { /* {{{ */
$db = $this->_dms->getDB();
$queryStr = "SELECT * FROM `tblArosAcos` WHERE `aro`=".$aro->getID()." AND `aco`=".$aco->getID();
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return false;
if (count($resArr) == 1) {
$resArr = $resArr[0];
$newperm = $resArr['read'] == 1 ? -1 : 1;
$queryStr = "UPDATE `tblArosAcos` SET `read`=".$newperm." WHERE `aro`=".$aro->getID()." AND `aco`=".$aco->getID();
if (!$db->getResult($queryStr))
return false;
} else {
$queryStr = "INSERT INTO `tblArosAcos` (`aro`, `aco`, `read`) VALUES (".$aro->getID().", ".$aco->getID().", ".$perm.")";
if (!$db->getResult($queryStr))
return false;
}
return true;
} /* }}} */
public function remove($aro, $aco) { /* {{{ */
$db = $this->_dms->getDB();
$queryStr = "DELETE FROM `tblArosAcos` WHERE `aro`=".$aro->getID()." AND `aco`=".$aco->getID();
if (!$db->getResult($queryStr))
return false;
return true;
} /* }}} */
} /* }}} */
/**
* Class to represent an access request/controll object
*
* This class provides a model for access request/controll objects.
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2016 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_AroAco { /* {{{ */
/**
* @var object $dms reference to dms object.
* @access protected
*/
public $_dms;
/**
* @var integer id of access request object
*/
protected $_id;
/**
* @var integer id of parent of access request object
*/
protected $_parent;
/**
* @var string alias of access request object
*/
protected $_alias;
/**
* @var object object of access request object
*/
protected $_object;
/**
* Create a new instance of an aro
*
* @param object $dms object of dms
* @return object instance of SeedDMS_Aco
*/
function __construct($dms, $id, $parent, $object, $alias) { /* {{{ */
$this->_dms = $dms;
$this->_id = $id;
$this->_parent = $parent;
$this->_object = $object;
$this->_alias = $alias;
} /* }}} */
public function setDMS($dms) { /* {{{ */
$this->_dms = $dms;
} /* }}} */
public function getDMS() { /* {{{ */
return($this->_dms);
} /* }}} */
public function getID() { /* {{{ */
return $this->_id;
} /* }}} */
public function getAlias() { /* {{{ */
return $this->_alias;
} /* }}} */
public function getObject() { /* {{{ */
return $this->_object;
} /* }}} */
} /* }}} */
/**
* Class to represent an access request object
*
* This class provides a model for access request objects.
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2016 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Aro extends SeedDMS_AroAco { /* {{{ */
/**
* Create a new instance of an aro
*
* @param object $dms object to access the underlying database
* @return object instance of SeedDMS_Aro
*/
public static function getInstance($id, $dms) { /* {{{ */
$db = $dms->getDB();
if(is_int($id)) {
$queryStr = "SELECT * FROM `tblAros` WHERE `id` = " . (int) $id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) != 1)
return null;
$resArr = $resArr[0];
} elseif(is_object($id)) {
if($dms->getClassname('role') == get_class($id)) {
$model = 'Role';
$queryStr = "SELECT * FROM `tblAros` WHERE `model`=".$db->qstr($model)." AND `foreignid`=".$id->getID();
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) == 0) {
$queryStr = "INSERT INTO `tblAros` (`parent`, `model`, `foreignid`) VALUES (0, ".$db->qstr($model).", ".$id->getID().")";
if (!$db->getResult($queryStr))
return null;
$id = $db->getInsertID();
$queryStr = "SELECT * FROM `tblAros` WHERE `id` = " . $id;
$resArr = $db->getResultArray($queryStr);
}
$resArr = $resArr[0];
} else {
return null;
}
}
if($resArr['model'] == 'Role') {
$classname = $dms->getClassname('role');
$object = $classname::getInstance($resArr['foreignid'], $dms);
} else {
$object = null;
}
$aro = new SeedDMS_Aro($dms, $resArr["id"], $resArr['parent'], $object, $resArr['alias']);
$aro->setDMS($dms);
return $aro;
} /* }}} */
} /* }}} */
/**
* Class to represent an access control object
*
* This class provides a model for access control objects.
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2016 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Aco extends SeedDMS_AroAco{ /* {{{ */
/**
* Create a new instance of an aco
*
* @param object $dms object to access the underlying database
* @return object instance of SeedDMS_Aco
*/
public static function getInstance($id, $dms) { /* {{{ */
$db = $dms->getDB();
if(is_int($id)) {
$queryStr = "SELECT * FROM `tblAcos` WHERE `id` = " . (int) $id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) == 0) {
return null;
}
$resArr = $resArr[0];
} elseif(is_string($id)) {
$tmp = explode('/', $id);
$parentid = 0;
foreach($tmp as $part) {
$queryStr = "SELECT * FROM `tblAcos` WHERE `alias` = " . $db->qstr($part);
// if($parentid)
$queryStr .= " AND parent=".$parentid;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) == 0) {
$queryStr = "INSERT INTO `tblAcos` (`parent`, `alias`, `model`) VALUES (".$parentid.",".$db->qstr($part).", '')";
if (!$db->getResult($queryStr))
return null;
$id = $db->getInsertID();
$queryStr = "SELECT * FROM `tblAcos` WHERE `id` = " . $id;
$resArr = $db->getResultArray($queryStr);
}
$parentid = (int) $resArr[0]['id'];
}
$resArr = $resArr[0];
}
if($resArr['model'] == 'Document') {
$classname = $dms->getClassname('document');
$object = $classname::getInstance($resArr['foreignid'], $dms);
} elseif($resArr['model'] == 'Folder') {
$classname = $dms->getClassname('focument');
$object = $classname::getInstance($resArr['foreignid'], $dms);
} else {
$object = null;
}
$aco = new SeedDMS_Aco($dms, $resArr["id"], $resArr['parent'], $object, $resArr['alias']);
$aco->setDMS($dms);
return $aco;
} /* }}} */
public function getChildren() { /* {{{ */
$dms = $this->getDMS();
$db = $dms->getDB();
$queryStr = "SELECT * FROM `tblAcos` WHERE `parent` = ".$this->_id." ORDER BY `alias`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) == 0)
return null;
$acos = array();
foreach($resArr as $row) {
$aco = new SeedDMS_Aco($dms, $row["id"], $row['parent'], null, $row['alias']);
$aco->setDMS($dms);
$acos[] = $aco;
}
return $acos;
} /* }}} */
public function getPermission($aro) { /* {{{ */
if(!$aro)
return 0;
$dms = $this->getDMS();
$db = $dms->getDB();
$queryStr = "SELECT * FROM `tblArosAcos` WHERE `aro`=".$aro->getID()." AND `aco`=".$this->_id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return false;
if (count($resArr) != 1)
return 0;
return (int) $resArr[0]['read'];
} /* }}} */
public static function getRoot($dms) { /* {{{ */
$db = $dms->getDB();
$queryStr = "SELECT * FROM `tblAcos` WHERE `parent` = 0 ORDER BY `alias`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
$acos = array();
foreach($resArr as $row) {
$aco = new SeedDMS_Aco($dms, $row["id"], $row['parent'], null, $row['alias']);
$aco->setDMS($dms);
$acos[] = $aco;
}
return $acos;
} /* }}} */
public function getParent() { /* {{{ */
$dms = $this->getDMS();
$db = $dms->getDB();
$queryStr = "SELECT * FROM `tblAcos` WHERE `id` = ".$this->_parent;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr === false)
return null;
if (count($resArr) != 1)
return null;
$row = $resArr[0];
$aco = new SeedDMS_Aco($dms, $row["id"], $row['parent'], null, $row['alias']);
$aco->setDMS($dms);
return $aco;
} /* }}} */
} /* }}} */

View File

@ -52,6 +52,7 @@ class Controller {
require_once($filename);
$controller = new $classname($params);
/* Set some configuration parameters */
$controller->setParam('class', $class);
$controller->setParam('postVars', $_POST);
$controller->setParam('getVars', $_GET);
$controller->setParam('requestVars', $_REQUEST);

View File

@ -316,4 +316,26 @@ class SeedDMS_Controller_Common {
}
return false;
} /* }}} */
/**
* Check if the access on the contoller with given name or the current
* controller itself may be accessed.
*
* The function requires the parameter 'accessobject' to be available in the
* controller, because it calls SeedDMS_AccessOperation::check_controller_access()
* to check access rights. If the the optional $name is not set the
* current controller is used.
*
* @param string|array $name name of controller or list of controller names
* @return boolean true if access is allowed otherwise false
*/
protected function check_access($name='') { /* {{{ */
if(!$name)
$name = $this;
if(!isset($this->params['accessobject']))
return false;
$access = $this->params['accessobject']->check_controller_access($name);
return $access;
} /* }}} */
}

View File

@ -120,7 +120,6 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
$from = $this->from_address;
}
$body = '';
if(!isset($params['__skip_header__']) || !$params['__skip_header__']) {
if(!isset($params['__header__']))
@ -278,10 +277,12 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
* The dispatching is now done in SeedDMS_NotificationService::toList()
*/
function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */
/*
if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) ||
(!is_array($recipients) && count($recipients)==0)) {
return false;
}
*/
$ret = true;
foreach ($recipients as $recipient) {

View File

@ -148,6 +148,10 @@ class SeedDMS_Extension_Mgr {
}
} /* }}} */
public function getRepositoryUrl() { /* {{{ */
return $this->reposurl;
} /* }}} */
private function getStreamContext() { /* {{{ */
if(!$this->proxyurl)
return null;
@ -619,14 +623,15 @@ class SeedDMS_Extension_Mgr {
$result = array();
$vcache = array(); // keep highest version of extension
foreach($list as $e) {
if($e[0] != '#') {
$re = json_decode($e, true);
if(!isset($result[$re['name']])) {
$result[$re['name']] = $re;
$vcache[$re['name']] = $re['version'];
} elseif(self::cmpVersion($re['version'], $vcache[$re['name']]) > 0) {
$result[$re['name']] = $re;
$vcache[$re['name']] = $re['version'];
if($e[0] != '#' && trim($e)) {
if($re = json_decode($e, true)) {
if(!isset($result[$re['name']])) {
$result[$re['name']] = $re;
$vcache[$re['name']] = $re['version'];
} elseif(self::cmpVersion($re['version'], $vcache[$re['name']]) > 0) {
$result[$re['name']] = $re;
$vcache[$re['name']] = $re['version'];
}
}
}
}

View File

@ -51,6 +51,8 @@ class SeedDMS_NotificationService {
const RECV_APPROVER = 4;
const RECV_WORKFLOW = 5;
const RECV_UPLOADER = 6;
const RECV_REVISOR = 7;
const RECV_RECIPIENT = 8;
public function __construct($logger = null, $settings = null) { /* {{{ */
$this->services = array();
@ -1175,6 +1177,80 @@ class SeedDMS_NotificationService {
$this->toIndividual($user, $content->getUser(), $subject, $message, $params, SeedDMS_NotificationService::RECV_UPLOADER);
} /* }}} */
public function sendSubmittedReceiptMail($content, $user, $receiptlog) { /* {{{ */
$document = $content->getDocument();
$nl=$document->getNotifyList();
$folder = $document->getFolder();
$subject = "receipt_submit_email_subject";
$message = "receipt_submit_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['status'] = getReceiptStatusText($receiptlog["status"]);
$params['comment'] = $receiptlog['comment'];
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
$this->toList($user, $nl["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
foreach ($nl["groups"] as $grp) {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
}
/* Send mail to owner only if the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
/*
if($user->getID() != $document->getOwner()->getID() && false === SeedDMS_Core_DMS::inList($document->getOwner(), $nl['users']))
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
*/
/* Send mail to uploader of version only if the uploader is not the owner and
* the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
if($user->getID() != $content->getUser()->getID() /* && $content->getUser()->getID() != $document->getOwner()->getID() */ && false === SeedDMS_Core_DMS::inList($content->getUser(), $nl['users']))
$this->toIndividual($user, $content->getUser(), $subject, $message, $params, SeedDMS_NotificationService::RECV_UPLOADER);
} /* }}} */
public function sendSubmittedRevisionMail($content, $user, $revisionlog) { /* {{{ */
$document = $content->getDocument();
$nl=$document->getNotifyList();
$folder = $document->getFolder();
$subject = "revision_submit_email_subject";
$message = "revision_submit_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['status'] = getRevisionStatusText($revisionlog["status"]);
$params['comment'] = $revisionlog['comment'];
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
$this->toList($user, $nl["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
foreach ($nl["groups"] as $grp) {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
}
/* Send mail to owner only if the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
/*
if($user->getID() != $document->getOwner()->getID() && false === SeedDMS_Core_DMS::inList($document->getOwner(), $nl['users']))
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
*/
/* Send mail to uploader of version only if the uploader is not the owner and
* the currently logged in user is not the
* owner and the owner is not already in the list of notifiers.
*/
if($user->getID() != $content->getUser()->getID() /* && $content->getUser()->getID() != $document->getOwner()->getID() */ && false === SeedDMS_Core_DMS::inList($content->getUser(), $nl['users']))
$this->toIndividual($user, $content->getUser(), $subject, $message, $params, SeedDMS_NotificationService::RECV_UPLOADER);
} /* }}} */
public function sendDeleteApprovalMail($content, $user, $approver) { /* {{{ */
$document = $content->getDocument();
$folder = $document->getFolder();
@ -1208,7 +1284,11 @@ class SeedDMS_NotificationService {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
$params['username'] = $user->getFullName();
if($reviewer->isType('user'))
$params['reviewer'] = $reviewer->getFullName();
elseif($reviewer->isType('group'))
$params['reviewer'] = $reviewer->getName();
$params['username'] = $user->getName();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
@ -1219,6 +1299,58 @@ class SeedDMS_NotificationService {
$this->toGroup($user, $reviewer, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVIEWER);
} /* }}} */
public function sendDeleteRevisionMail($content, $user, $revisor) { /* {{{ */
$document = $content->getDocument();
$folder = $document->getFolder();
$subject = "revision_deletion_email_subject";
$message = "revision_deletion_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
if($revisor->isType('user'))
$params['revisor'] = $revisor->getFullName();
elseif($revisor->isType('group'))
$params['revisor'] = $revisor->getName();
$params['username'] = $user->getFullName();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
if($revisor->isType('user'))
$this->toIndividual($user, $revisor, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVISOR);
elseif($revisor->isType('group'))
$this->toGroup($user, $revisor, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVISOR);
} /* }}} */
public function sendDeleteReceiptMail($content, $user, $recipient) { /* {{{ */
$document = $content->getDocument();
$folder = $document->getFolder();
$subject = "receipt_deletion_email_subject";
$message = "receipt_deletion_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
if($recipient->isType('user'))
$params['recipient'] = $recipient->getFullName();
elseif($recipient->isType('group'))
$params['recipient'] = $recipient->getName();
$params['username'] = $user->getFullName();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
if($recipient->isType('user'))
$this->toIndividual($user, $recipient, $subject, $message, $params, SeedDMS_NotificationService::RECV_RECIPIENT);
elseif($recipient->isType('group'))
$this->toGroup($user, $recipient, $subject, $message, $params, SeedDMS_NotificationService::RECV_RECIPIENT);
} /* }}} */
/**
* This notification is send if a new approver is added.
*
@ -1270,6 +1402,10 @@ class SeedDMS_NotificationService {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
if($reviewer->isType('user'))
$params['reviewer'] = $reviewer->getFullName();
elseif($reviewer->isType('group'))
$params['reviewer'] = $reviewer->getName();
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
@ -1281,6 +1417,60 @@ class SeedDMS_NotificationService {
$this->toGroup($user, $reviewer, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVIEWER);
} /* }}} */
public function sendAddRevisionMail($content, $user, $revisor) { /* {{{ */
$document = $content->getDocument();
$folder = $document->getFolder();
$subject = "revision_request_email_subject";
$message = "revision_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
if($revisor->isType('user'))
$params['revisor'] = $revisor->getFullName();
elseif($revisor->isType('group'))
$params['revisor'] = $user->getName();
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
if($revisor->isType('user'))
$this->toIndividual($user, $revisor, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVISOR);
elseif($revisor->isType('group'))
$this->toGroup($user, $revisor, $subject, $message, $params, SeedDMS_NotificationService::RECV_REVISOR);
} /* }}} */
public function sendAddReceiptMail($content, $user, $recipient) { /* {{{ */
$document = $content->getDocument();
$folder = $document->getFolder();
$subject = "receipt_request_email_subject";
$message = "receipt_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
if($recipient->isType('user'))
$params['recipient'] = $recipient->getFullName();
elseif($recipient->isType('group'))
$params['recipient'] = $user->getName();
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
$params['http_root'] = $this->settings->_httpRoot;
if($recipient->isType('user'))
$this->toIndividual($user, $recipient, $subject, $message, $params, SeedDMS_NotificationService::RECV_RECIPIENT);
elseif($recipient->isType('group'))
$this->toGroup($user, $recipient, $subject, $message, $params, SeedDMS_NotificationService::RECV_RECIPIENT);
} /* }}} */
public function sendChangedDocumentOwnerMail($document, $user, $oldowner) { /* {{{ */
if($oldowner->getID() != $document->getOwner()->getID()) {
$notifyList = $document->getNotifyList();

View File

@ -0,0 +1,74 @@
<?php
/**
* Implementation of an SchedulerTask.
*
* SeedDMS can be extended by extensions. Extension usually implement
* hook.
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2018 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class to represent a SchedulerTask
*
* This class provides some very basic methods to manage extensions.
*
* @category DMS
* @package SeedDMS
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2011 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Scheduler {
/**
* Instanz of database
*/
protected $db;
public function getTask($id) { /* {{{ */
return SeedDMS_SchedulerTask::getInstance($id, $this->db);
} /* }}} */
public function getTasksByExtension($extname, $taskname) { /* {{{ */
return SeedDMS_SchedulerTask::getInstancesByExtension($extname, $taskname, $this->db);
} /* }}} */
public function getTasks() { /* {{{ */
return SeedDMS_SchedulerTask::getInstances($this->db);
} /* }}} */
public function addTask($extname, $taskname, $name, $description, $frequency, $disabled, $params) { /* {{{ */
$db = $this->db;
if(!$extname)
return false;
if(!$taskname)
return false;
try {
$cron = Cron\CronExpression::factory($frequency);
} catch (Exception $e) {
return false;
}
$nextrun = $cron->getNextRunDate()->format('Y-m-d H:i:s');
$queryStr = "INSERT INTO `tblSchedulerTask` (`extension`, `task`, `name`, `description`, `frequency`, `disabled`, `params`, `nextrun`, `lastrun`) VALUES (".$db->qstr($extname).", ".$db->qstr($taskname).", ".$db->qstr($name).", ".$db->qstr($description).", ".$db->qstr($frequency).", ".intval($disabled).", ".$db->qstr(json_encode($params)).", '".$nextrun."', NULL)";
$res = $db->getResult($queryStr);
if (!$res)
return false;
$task = SeedDMS_SchedulerTask::getInstance($db->getInsertID('tblSchedulerTask'), $db);
return $task;
} /* }}} */
function __construct($db) {
$this->db = $db;
}
}

View File

@ -0,0 +1,347 @@
<?php
/**
* Implementation of an SchedulerTask.
*
* SeedDMS can be extended by extensions. Extension usually implement
* hook.
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2018 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class to represent a SchedulerTask
*
* This class provides some very basic methods to manage extensions.
*
* @category DMS
* @package SeedDMS
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
* @copyright 2011 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_SchedulerTask {
/**
* Instanz of database
*/
protected $db;
/**
* @var integer unique id of task
*/
protected $_id;
/**
* @var string name of task
*/
protected $_name;
/**
* @var string description of task
*/
protected $_description;
/**
* @var string extension of task
*/
protected $_extension;
/**
* @var string task of task
*/
protected $_task;
/**
* @var string frequency of task
*/
protected $_frequency;
/**
* @var integer set if disabled
*/
protected $_disabled;
/**
* @var array list of parameters
*/
protected $_params;
/**
* @var integer last run
*/
protected $_lastrun;
/**
* @var integer next run
*/
protected $_nextrun;
public static function getInstance($id, $db) { /* {{{ */
$queryStr = "SELECT * FROM `tblSchedulerTask` WHERE `id` = " . (int) $id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr) != 1)
return null;
$row = $resArr[0];
$task = new self($row["id"], $row['name'], $row["description"], $row["extension"], $row["task"], $row["frequency"], $row['disabled'], json_decode($row['params'], true), $row["nextrun"], $row["lastrun"]);
$task->setDB($db);
return $task;
} /* }}} */
public static function getInstances($db) { /* {{{ */
$queryStr = "SELECT * FROM `tblSchedulerTask`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr) == 0)
return array();
$tasks = array();
foreach($resArr as $row) {
$task = new self($row["id"], $row['name'], $row["description"], $row["extension"], $row["task"], $row["frequency"], $row['disabled'], json_decode($row['params'], true), $row["nextrun"], $row["lastrun"]);
$task->setDB($db);
$tasks[] = $task;
}
return $tasks;
} /* }}} */
public static function getInstancesByExtension($extname, $taskname, $db) { /* {{{ */
$queryStr = "SELECT * FROM `tblSchedulerTask` WHERE `extension` = '".$extname."' AND `task` = '".$taskname."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr) == 0)
return array();
$tasks = array();
foreach($resArr as $row) {
$task = new self($row["id"], $row['name'], $row["description"], $row["extension"], $row["task"], $row["frequency"], $row['disabled'], json_decode($row['params'], true), $row["nextrun"], $row["lastrun"]);
$task->setDB($db);
$tasks[] = $task;
}
return $tasks;
} /* }}} */
function __construct($id, $name, $description, $extension, $task, $frequency, $disabled, $params, $nextrun, $lastrun) {
$this->_id = $id;
$this->_name = $name;
$this->_description = $description;
$this->_extension = $extension;
$this->_task = $task;
$this->_frequency = $frequency;
$this->_disabled = $disabled;
$this->_params = $params;
$this->_nextrun = $nextrun;
$this->_lastrun = $lastrun;
}
public function setDB($db) {
$this->db = $db;
}
public function getID() {
return $this->_id;
}
public function getName() {
return $this->_name;
}
public function setName($newName) { /* {{{ */
$db = $this->db;
$queryStr = "UPDATE `tblSchedulerTask` SET `name` =".$db->qstr($newName)." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_name = $newName;
return true;
} /* }}} */
public function getDescription() {
return $this->_description;
}
public function setDescription($newDescripion) { /* {{{ */
$db = $this->db;
$queryStr = "UPDATE `tblSchedulerTask` SET `description` =".$db->qstr($newDescripion)." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_description = $newDescripion;
return true;
} /* }}} */
public function getExtension() {
return $this->_extension;
}
public function getTask() {
return $this->_task;
}
public function getFrequency() {
return $this->_frequency;
}
public function setFrequency($newFrequency) { /* {{{ */
$db = $this->db;
try {
$cron = Cron\CronExpression::factory($newFrequency);
} catch (Exception $e) {
return false;
}
$nextrun = $cron->getNextRunDate()->format('Y-m-d H:i:s');
$queryStr = "UPDATE `tblSchedulerTask` SET `frequency` =".$db->qstr($newFrequency).", `nextrun` = '".$nextrun."' WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_frequency = $newFrequency;
$this->_nextrun = $nextrun;
return true;
} /* }}} */
public function getNextRun() {
return $this->_nextrun;
}
public function getLastRun() {
return $this->_lastrun;
}
public function getDisabled() {
return $this->_disabled;
}
public function setDisabled($newDisabled) { /* {{{ */
$db = $this->db;
$queryStr = "UPDATE `tblSchedulerTask` SET `disabled` =".intval($newDisabled)." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_disabled = $newDisabled;
return true;
} /* }}} */
public function setParameter($newParams) { /* {{{ */
$db = $this->db;
$queryStr = "UPDATE `tblSchedulerTask` SET `params` =".$db->qstr(json_encode($newParams))." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_params = $newParams;
return true;
} /* }}} */
public function getParameter($name = '') {
if($name)
return isset($this->_params[$name]) ? $this->_params[$name] : null;
return $this->_params;
}
/**
* Check if task is due
*
* This methods compares the current time with the time in the database
* field `nextrun`.
* If nextrun is smaller than the current time, the the task is due.
* The methode does not rely on the value in the class variable `_nextrun`,
* because that value could be 'very old', retrieved at a time
* when the task list was fetched for checking due tasks e.g. by the
* scheduler client. There is good reason to always take the current
* value of nextrun from the database.
*
* Assuming there are two tasks. Task 1 takes 13 mins and task 2 takes only
* 30 sec. Task 1 is run every hour and task 2 starts at 8:06. The cronjob
* runs every 5 min. At e.g. 8:00 the list of tasks is read from the database
* task 1 is due and starts running and before it runs it sets the database
* field nextrun to 9:00. Task 2 isn't due at that time.
* At 8:05 the cron job runs again, task 1 has already a new nextrun value
* and will not run again. Task 2 isn't due yet and task 1 started at 8:00 is
* still running.
* At 8:10 task 1 is still running an not due again, but task 2 is due and
* will be run. The database field `nextrun` of task 2 will be set to 8:06
* on the next day.
* At 8:13 task 1 which started at 8:00 is finished and the list of tasks
* from that time will be processed further. Task 2 still has the old value
* in the class variable `_nextrun` (8:06 the current day),
* though the database field `nextrun` has been updated in
* between. Taking the value of the class variable would rerun task 2 again,
* though it ran at 8:10 already.
* That's why this method always takes the current value of nextrun
* from the database.
*
* @return boolean true if task is due, otherwise false
*/
public function isDue() {
$db = $this->db;
$queryStr = "SELECT * FROM `tblSchedulerTask` WHERE `id` = " . $this->_id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr) != 1)
return false;
$row = $resArr[0];
$this->_nextrun = $row['nextrun'];
return $this->_nextrun < date('Y-m-d H:i:s');
}
public function updateLastNextRun() {
$db = $this->db;
$lastrun = date('Y-m-d H:i:s');
try {
$cron = Cron\CronExpression::factory($this->_frequency);
$nextrun = $cron->getNextRunDate()->format('Y-m-d H:i:s');
} catch (Exception $e) {
$nextrun = null;
}
$queryStr = "UPDATE `tblSchedulerTask` SET `lastrun`=".$db->qstr($lastrun).", `nextrun`=".($nextrun ? $db->qstr($nextrun) : "NULL")." WHERE `id` = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_lastrun = $lastrun;
$this->_nextrun = $nextrun;
}
/**
* Delete task
*
* @return boolean true on success or false in case of an error
*/
function remove() { /* {{{ */
$db = $this->db;
$queryStr = "DELETE FROM `tblSchedulerTask` WHERE `id` = " . $this->_id;
if (!$db->getResult($queryStr)) {
return false;
}
return true;
} /* }}} */
}

View File

@ -0,0 +1,139 @@
<?php
/***************************************************************
* Copyright notice
*
* (c) 2018 Uwe Steinmann <uwe@steinmann.cx>
* All rights reserved
*
* This script is part of the SeedDMS project. The SeedDMS project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Base class for scheduler task
*
* @author Uwe Steinmann <uwe@steinmann.cx>
* @package SeedDMS
*/
class SeedDMS_SchedulerTaskBase {
var $dms;
var $user;
var $settings;
var $logger;
var $fulltextservice;
var $notifier;
var $conversionmgr;
/**
* Call a hook with a given name
*
* Checks if a hook with the given name and for the current task
* exists and executes it. The name of the current task is taken
* from the current class name by lower casing the first char.
* This function will execute all registered hooks in the order
* they were registered.
*
* Attention: as func_get_arg() cannot handle references passed to the hook,
* callHook() should not be called if that is required. In that case get
* a list of hook objects with getHookObjects() and call the hooks yourself.
*
* @params string $hook name of hook
* @return string concatenated string, merged arrays or whatever the hook
* function returns
*/
public function callHook($hook) { /* {{{ */
$tmps = array();
$tmp = explode('_', get_class($this));
$tmps[] = $tmp[1];
$tmp = explode('_', get_parent_class($this));
$tmps[] = $tmp[1];
/* Run array_unique() in case the parent class has the same suffix */
$tmps = array_unique($tmps);
$ret = null;
foreach($tmps as $tmp)
if(isset($GLOBALS['SEEDDMS_HOOKS']['task'][lcfirst($tmp)])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['task'][lcfirst($tmp)] as $hookObj) {
if (method_exists($hookObj, $hook)) {
switch(func_num_args()) {
case 1:
$tmpret = $hookObj->$hook($this);
break;
case 2:
$tmpret = $hookObj->$hook($this, func_get_arg(1));
break;
case 3:
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
break;
case 4:
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3));
break;
default:
case 5:
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
break;
}
if($tmpret !== null) {
if(is_string($tmpret)) {
$ret = ($ret === null) ? $tmpret : (is_string($ret) ? $ret.$tmpret : array_merge($ret, array($tmpret)));
} elseif(is_array($tmpret) || is_object($tmpret)) {
$ret = ($ret === null) ? $tmpret : (is_string($ret) ? array_merge(array($ret), $tmpret) : array_merge($ret, $tmpret));
} else
$ret = $tmpret;
}
}
}
}
return $ret;
} /* }}} */
public function __construct($dms=null, $user=null, $settings=null, $logger=null, $fulltextservice=null, $notifier=null, $conversionmgr=null) { /* {{{ */
$this->dms = $dms;
$this->user = $user;
$this->settings = $settings;
$this->logger = $logger;
$this->fulltextservice = $fulltextservice;
$this->notifier = $notifier;
$this->conversionmgr = $conversionmgr;
} /* }}} */
public function execute(SeedDMS_SchedulerTask $task) { /* {{{ */
return true;
} /* }}} */
public function getDescription() { /* {{{ */
return '';
} /* }}} */
public function getAdditionalParams() { /* {{{ */
return array();
} /* }}} */
public function getAdditionalParamByName($name) { /* {{{ */
foreach($this->getAdditionalParams() as $param) {
if($param['name'] == $name)
return $param;
}
return null;
} /* }}} */
}
?>

View File

@ -45,6 +45,8 @@ class Settings { /* {{{ */
var $_enableGuestLogin = false;
// If you even want guest to be logged in automatically, set the following to true
var $_enableGuestAutoLogin = false;
// Set to true for 2-factor Authentication
var $_enable2FactorAuthentication = false;
// If you want to allow login by email, set the following to true
var $_enableLoginByEmail = false;
// Allow users to reset their password
@ -116,6 +118,12 @@ class Settings { /* {{{ */
var $_dropFolderDir = null;
// Where the backup directory is located
var $_backupDir = null;
// Where the library folder is located
var $_libraryFolder = 1;
// Where the checked out files are located
var $_checkOutDir = null;
// Create checkout dir if it doesn't exists
var $_createCheckOutDir = false;
// Where the repository for extensions is located
var $_repositoryUrl = null;
// URL of proxy
@ -186,6 +194,18 @@ class Settings { /* {{{ */
var $_enableUpdateRevApp = false;
// enable/disable removal of a review/approval by the administrator
var $_enableRemoveRevApp = false;
// enable/disable listing logged in user as recipient
var $_enableSelfReceipt = false;
// enable/disable hidden user as recipient
var $_enableHiddenReceipt = true;
// enable/disable update of a receipt by the recipient
var $_enableUpdateReceipt = false;
// enable/disable listing administrator as recipient
var $_enableAdminReceipt = false;
// enable/disable listing owner as recipient
var $_enableOwnerReceipt = false;
// enable/disable filter for receipt by the recipient
var $_enableFilterReceipt = false;
// group manager is mandatory reviewer
var $_addManagerAsReviewer = false;
// group manager is mandatory approver
@ -208,8 +228,12 @@ class Settings { /* {{{ */
var $_enableDuplicateDocNames = true;
// enable/disable duplicate names of a subfolder in a folder
var $_enableDuplicateSubFolderNames = true;
// allow/disallow to cancel a checkout
var $_enableCancelCheckout = true;
// override mimetype set by browser when uploading a file
var $_overrideMimeType = false;
// advanced access control lists
var $_advancedAcl = false;
// enable/disable notification when added as a reviewer/approver
var $_enableNotificationAppRev = true;
// enable/disable notification of users/group who need to take action for
@ -219,12 +243,26 @@ class Settings { /* {{{ */
var $_enableNotificationWorkflow = false;
// preset expiration date
var $_presetExpirationDate = "";
// initial document status
var $_initialDocumentStatus = 2; //S_RELEASED;
// the name of the versioning info file created by the backup tool
var $_versioningFileName = "versioning_info.txt";
// the mode of workflow
var $_workflowMode = "traditional";
// enable/disable acknowledge workflow
var $_enableReceiptWorkflow = true;
// enable/disable reject of reception
var $_enableReceiptReject = false;
// enable/disable comment of reception
var $_disableReceiptComment = false;
// enable/disable revision workflow
var $_enableRevisionWorkflow = true;
// enable/disable revision on vote reject
var $_enableRevisionOneVoteReject = true;
// Allow to set just a reviewer in tradional workflow
var $_allowReviewerOnly = true;
// Allow to change reviewer/approver after review/approval has started
var $_allowChangeRevAppInProcess = false;
// enable/disable log system
var $_logFileEnable = true;
// enable/disable log system
@ -259,8 +297,12 @@ class Settings { /* {{{ */
var $_enableClipboard = true;
// show always clipboard in main menu, even if empty
var $_alwaysShowClipboard = false;
// enable/disable list of transmittals in main menu
var $_enableMenuTransmittals = false;
// enable/disable list of tasks in main menu
var $_enableMenuTasks = true;
// select which tasks show up in main menu
var $_tasksInMenu = array();
// show always tasks in main menu, even if none are due
var $_alwaysShowMenuTasks = true;
// enable/disable list of files in drop folder
@ -433,6 +475,18 @@ class Settings { /* {{{ */
return $out;
} /* }}} */
/**
* Check if a variable is a string and returns an array
*
* @param array $var value
* @return true/false
*/
function arrayVal($var) { /* {{{ */
if((string) $var)
return explode(';', $var);
return array();
} /* }}} */
/**
* Return ';' seperated string from array
*
@ -557,8 +611,10 @@ class Settings { /* {{{ */
$this->_enableSessionList = Settings::boolVal($tab["enableSessionList"]);
$this->_enableClipboard = Settings::boolVal($tab["enableClipboard"]);
$this->_alwaysShowClipboard = Settings::boolVal($tab["alwaysShowClipboard"]);
$this->_enableMenuTransmittals = Settings::boolVal($tab["enableMenuTransmittals"]);
$this->_enableMenuTasks = Settings::boolVal($tab["enableMenuTasks"]);
$this->_alwaysShowMenuTasks = Settings::boolVal($tab["alwaysShowMenuTasks"]);
$this->_tasksInMenu = Settings::arrayVal($tab["tasksInMenu"]);
$this->_enableDropFolderList = Settings::boolVal($tab["enableDropFolderList"]);
$this->_enableDropUpload = Settings::boolVal($tab["enableDropUpload"]);
$this->_enableMultiUpload = Settings::boolVal($tab["enableMultiUpload"]);
@ -582,6 +638,7 @@ class Settings { /* {{{ */
$this->_sortUsersInList = strval($tab["sortUsersInList"]);
$this->_sortFoldersDefault = strval($tab["sortFoldersDefault"]);
$this->_expandFolderTree = intval($tab["expandFolderTree"]);
$this->_libraryFolder = intval($tab["libraryFolder"]);
$this->_defaultDocPosition = strval($tab["defaultDocPosition"]);
$this->_defaultFolderPosition = strval($tab["defaultFolderPosition"]);
@ -625,6 +682,8 @@ class Settings { /* {{{ */
$this->_luceneDir = strval($tab["luceneDir"]);
$this->_dropFolderDir = strval($tab["dropFolderDir"]);
$this->_backupDir = strval($tab["backupDir"]);
$this->_checkOutDir = strval($tab["checkOutDir"]);
$this->_createCheckOutDir = Settings::boolVal($tab["createCheckOutDir"]);
$this->_repositoryUrl = strval($tab["repositoryUrl"]);
$this->_proxyUrl = strval($tab["proxyUrl"]);
$this->_proxyUser = strval($tab["proxyUser"]);
@ -636,14 +695,13 @@ class Settings { /* {{{ */
$this->_partitionSize = strval($tab["partitionSize"]);
$this->_maxUploadSize = strval($tab["maxUploadSize"]);
$this->_enableXsendfile = Settings::boolVal($tab["enableXsendfile"]);
}
// XML Path: /configuration/system/authentication
$node = $xml->xpath('/configuration/system/authentication');
if($node) {
// XML Path: /configuration/system/authentication
$node = $xml->xpath('/configuration/system/authentication');
$tab = $node[0]->attributes();
$this->_enableGuestLogin = Settings::boolVal($tab["enableGuestLogin"]);
$this->_enableGuestAutoLogin = Settings::boolVal($tab["enableGuestAutoLogin"]);
$this->_enable2FactorAuthentication = Settings::boolVal($tab["enable2FactorAuthentication"]);
$this->_enableLoginByEmail = Settings::boolVal($tab["enableLoginByEmail"]);
$this->_enablePasswordForgotten = Settings::boolVal($tab["enablePasswordForgotten"]);
$this->_passwordStrength = intval($tab["passwordStrength"]);
@ -781,6 +839,11 @@ class Settings { /* {{{ */
$this->_enableHiddenRevApp = Settings::boolval($tab["enableHiddenRevApp"]);
$this->_enableUpdateRevApp = Settings::boolval($tab["enableUpdateRevApp"]);
$this->_enableRemoveRevApp = Settings::boolval($tab["enableRemoveRevApp"]);
$this->_enableSelfReceipt = Settings::boolval($tab["enableSelfReceipt"]);
$this->_enableAdminReceipt = Settings::boolval($tab["enableAdminReceipt"]);
$this->_enableOwnerReceipt = Settings::boolval($tab["enableOwnerReceipt"]);
$this->_enableUpdateReceipt = Settings::boolval($tab["enableUpdateReceipt"]);
$this->_enableFilterReceipt = Settings::boolval($tab["enableFilterReceipt"]);
$this->_addManagerAsReviewer = Settings::boolval($tab["addManagerAsReviewer"]);
$this->_addManagerAsApprover = Settings::boolval($tab["addManagerAsApprover"]);
if(trim(strval($tab["globalReviewer"])))
@ -792,14 +855,23 @@ class Settings { /* {{{ */
if(trim(strval($tab["globalGroupApprover"])))
$this->_globalGroupApprover = explode(',',strval($tab["globalGroupApprover"]));
$this->_presetExpirationDate = strval($tab["presetExpirationDate"]);
$this->_initialDocumentStatus = intval($tab["initialDocumentStatus"]);
$this->_versioningFileName = strval($tab["versioningFileName"]);
$this->_workflowMode = strval($tab["workflowMode"]);
$this->_enableReceiptWorkflow = Settings::boolval($tab["enableReceiptWorkflow"]);
$this->_enableReceiptReject = Settings::boolval($tab["enableReceiptReject"]);
$this->_disableReceiptComment = Settings::boolval($tab["disableReceiptComment"]);
$this->_enableRevisionWorkflow = Settings::boolval($tab["enableRevisionWorkflow"]);
$this->_enableRevisionOneVoteReject = Settings::boolval($tab["enableRevisionOneVoteReject"]);
$this->_allowReviewerOnly = Settings::boolval($tab["allowReviewerOnly"]);
$this->_allowChangeRevAppInProcess = Settings::boolval($tab["allowChangeRevAppInProcess"]);
$this->_enableVersionDeletion = Settings::boolval($tab["enableVersionDeletion"]);
$this->_enableVersionModification = Settings::boolval($tab["enableVersionModification"]);
$this->_enableDuplicateDocNames = Settings::boolval($tab["enableDuplicateDocNames"]);
$this->_enableDuplicateSubFolderNames = Settings::boolval($tab["enableDuplicateSubFolderNames"]);
$this->_enableCancelCheckout = Settings::boolval($tab["enableCancelCheckout"]);
$this->_overrideMimeType = Settings::boolval($tab["overrideMimeType"]);
$this->_advancedAcl = Settings::boolval($tab["advancedAcl"]);
$this->_removeFromDropFolder = Settings::boolval($tab["removeFromDropFolder"]);
$this->_uploadedAttachmentIsPublic = Settings::boolval($tab["uploadedAttachmentIsPublic"]);
}
@ -884,6 +956,8 @@ class Settings { /* {{{ */
$attributValue = "true";
else
$attributValue = "false";
} elseif(is_array($attributValue)) {
$attributValue = implode(';', $attributValue);
}
if (isset($node[$attributName])) {
@ -967,8 +1041,10 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "enableSessionList", $this->_enableSessionList);
$this->setXMLAttributValue($node, "enableClipboard", $this->_enableClipboard);
$this->setXMLAttributValue($node, "alwaysShowClipboard", $this->_alwaysShowClipboard);
$this->setXMLAttributValue($node, "enableMenuTransmittals", $this->_enableMenuTransmittals);
$this->setXMLAttributValue($node, "enableMenuTasks", $this->_enableMenuTasks);
$this->setXMLAttributValue($node, "alwaysShowMenuTasks", $this->_alwaysShowMenuTasks);
$this->setXMLAttributValue($node, "tasksInMenu", $this->_tasksInMenu);
$this->setXMLAttributValue($node, "enableDropFolderList", $this->_enableDropFolderList);
$this->setXMLAttributValue($node, "enableDropUpload", $this->_enableDropUpload);
$this->setXMLAttributValue($node, "enableMultiUpload", $this->_enableMultiUpload);
@ -990,6 +1066,7 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "stopWordsFile", $this->_stopWordsFile);
$this->setXMLAttributValue($node, "sortUsersInList", $this->_sortUsersInList);
$this->setXMLAttributValue($node, "sortFoldersDefault", $this->_sortFoldersDefault);
$this->setXMLAttributValue($node, "libraryFolder", $this->_libraryFolder);
$this->setXMLAttributValue($node, "defaultDocPosition", $this->_defaultDocPosition);
$this->setXMLAttributValue($node, "defaultFolderPosition", $this->_defaultFolderPosition);
@ -1021,6 +1098,8 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "luceneDir", $this->_luceneDir);
$this->setXMLAttributValue($node, "dropFolderDir", $this->_dropFolderDir);
$this->setXMLAttributValue($node, "backupDir", $this->_backupDir);
$this->setXMLAttributValue($node, "checkOutDir", $this->_checkOutDir);
$this->setXMLAttributValue($node, "createCheckOutDir", $this->_createCheckOutDir);
$this->setXMLAttributValue($node, "repositoryUrl", $this->_repositoryUrl);
$this->setXMLAttributValue($node, "proxyUrl", $this->_proxyUrl);
$this->setXMLAttributValue($node, "proxyUser", $this->_proxyUser);
@ -1037,6 +1116,7 @@ class Settings { /* {{{ */
$node = $this->getXMLNode($xml, '/configuration/system', 'authentication');
$this->setXMLAttributValue($node, "enableGuestLogin", $this->_enableGuestLogin);
$this->setXMLAttributValue($node, "enableGuestAutoLogin", $this->_enableGuestAutoLogin);
$this->setXMLAttributValue($node, "enable2FactorAuthentication", $this->_enable2FactorAuthentication);
$this->setXMLAttributValue($node, "enableLoginByEmail", $this->_enableLoginByEmail);
$this->setXMLAttributValue($node, "enablePasswordForgotten", $this->_enablePasswordForgotten);
$this->setXMLAttributValue($node, "passwordStrength", $this->_passwordStrength);
@ -1148,6 +1228,13 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "enableHiddenRevApp", $this->_enableHiddenRevApp);
$this->setXMLAttributValue($node, "enableUpdateRevApp", $this->_enableUpdateRevApp);
$this->setXMLAttributValue($node, "enableRemoveRevApp", $this->_enableRemoveRevApp);
$this->setXMLAttributValue($node, "enableSelfReceipt", $this->_enableSelfReceipt);
$this->setXMLAttributValue($node, "enableAdminReceipt", $this->_enableAdminReceipt);
$this->setXMLAttributValue($node, "enableOwnerReceipt", $this->_enableOwnerReceipt);
$this->setXMLAttributValue($node, "enableUpdateReceipt", $this->_enableUpdateReceipt);
$this->setXMLAttributValue($node, "enableFilterReceipt", $this->_enableFilterReceipt);
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
$this->setXMLAttributValue($node, "initialDocumentStatus", $this->_initialDocumentStatus);
$this->setXMLAttributValue($node, "addManagerAsReviewer", $this->_addManagerAsReviewer);
$this->setXMLAttributValue($node, "addManagerAsApprover", $this->_addManagerAsApprover);
$this->setXMLAttributValue($node, "globalReviewer", implode(',', $this->_globalReviewer));
@ -1157,14 +1244,21 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
$this->setXMLAttributValue($node, "apiOrigin", $this->_apiOrigin);
$this->setXMLAttributValue($node, "versioningFileName", $this->_versioningFileName);
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
$this->setXMLAttributValue($node, "workflowMode", $this->_workflowMode);
$this->setXMLAttributValue($node, "enableReceiptWorkflow", $this->_enableReceiptWorkflow);
$this->setXMLAttributValue($node, "enableReceiptReject", $this->_enableReceiptReject);
$this->setXMLAttributValue($node, "disableReceiptComment", $this->_disableReceiptComment);
$this->setXMLAttributValue($node, "enableRevisionWorkflow", $this->_enableRevisionWorkflow);
$this->setXMLAttributValue($node, "enableRevisionOneVoteReject", $this->_enableRevisionOneVoteReject);
$this->setXMLAttributValue($node, "allowReviewerOnly", $this->_allowReviewerOnly);
$this->setXMLAttributValue($node, "allowChangeRevAppInProcess", $this->_allowChangeRevAppInProcess);
$this->setXMLAttributValue($node, "enableVersionDeletion", $this->_enableVersionDeletion);
$this->setXMLAttributValue($node, "enableVersionModification", $this->_enableVersionModification);
$this->setXMLAttributValue($node, "enableDuplicateDocNames", $this->_enableDuplicateDocNames);
$this->setXMLAttributValue($node, "enableDuplicateSubFolderNames", $this->_enableDuplicateSubFolderNames);
$this->setXMLAttributValue($node, "enableCancelCheckout", $this->_enableCancelCheckout);
$this->setXMLAttributValue($node, "overrideMimeType", $this->_overrideMimeType);
$this->setXMLAttributValue($node, "advancedAcl", $this->_advancedAcl);
$this->setXMLAttributValue($node, "removeFromDropFolder", $this->_removeFromDropFolder);
$this->setXMLAttributValue($node, "uploadedAttachmentIsPublic", $this->_uploadedAttachmentIsPublic);

View File

@ -20,6 +20,7 @@
require_once('inc.ClassUI_Default.php');
require_once('inc.ClassViewCommon.php');
require_once('inc.ClassAccessOperation.php');
/* $theme was possibly set in inc.Authentication.php */
if (!isset($theme) || strlen($theme)==0) {
@ -45,7 +46,7 @@ class UI extends UI_Default {
* @return object an object of a class implementing the view
*/
static function factory($theme, $class='', $params=array()) { /* {{{ */
global $settings, $session, $extMgr, $request, $logger, $notifier;
global $settings, $dms, $user, $session, $extMgr, $request, $logger, $notifier;
if(!$class) {
$class = 'Bootstrap';
$class = 'Style';
@ -127,6 +128,7 @@ class UI extends UI_Default {
$params['settings'] = $settings;
$view = new $classname($params, $theme);
/* Set some configuration parameters */
$view->setParam('accessobject', new SeedDMS_AccessOperation($dms, $user, $settings));
$view->setParam('referer', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
$view->setParam('requesturi', $_SERVER['REQUEST_URI']);
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
@ -153,11 +155,14 @@ class UI extends UI_Default {
$view->setParam('enablefoldertree', $settings->_enableFolderTree);
$view->setParam('enablelanguageselector', $settings->_enableLanguageSelector);
$view->setParam('enableclipboard', $settings->_enableClipboard);
$view->setParam('enablemenutransmittals', $settings->_enableMenuTransmittals);
$view->setParam('enablemenutasks', $settings->_enableMenuTasks);
$view->setParam('tasksinmenu', $settings->_tasksInMenu);
$view->setParam('enabledropfolderlist', $settings->_enableDropFolderList);
$view->setParam('dropfolderdir', $settings->_dropFolderDir);
$view->setParam('enablesessionlist', $settings->_enableSessionList);
$view->setParam('workflowmode', $settings->_workflowMode);
$view->setParam('checkoutdir', $settings->_checkOutDir);
$view->setParam('partitionsize', SeedDMS_Core_File::parse_filesize( $settings->_partitionSize));
$view->setParam('maxuploadsize', $settings->getMaximumUploadSize());
$view->setParam('showmissingtranslations', $settings->_showMissingTranslations);
@ -193,7 +198,6 @@ class UI extends UI_Default {
static function exitError($pagetitle, $error, $noexit=false, $plain=false) {
global $theme, $dms, $user, $settings;
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$view = UI::factory($theme, 'ErrorDlg');
$request = $view->getParam('request');
if($request) {
@ -201,7 +205,6 @@ class UI extends UI_Default {
}
$view->setParam('dms', $dms);
$view->setParam('user', $user);
$view->setParam('accessobject', $accessop);
$view->setParam('pagetitle', $pagetitle);
$view->setParam('errormsg', $error);
$view->setParam('plain', $plain);

View File

@ -322,8 +322,10 @@ class SeedDMS_View_Common {
*/
protected function html_url($view, $urlparams=array()) { /* {{{ */
$url = $this->params['settings']->_httpRoot."out/out.".$view.".php";
if($urlparams)
if(is_array($urlparams))
$url .= "?".http_build_query($urlparams);
elseif(is_string($urlparams))
$url .= "?".$urlparams;
return $url;
} /* }}} */

View File

@ -87,6 +87,7 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
}
}
require_once('inc/inc.Tasks.php');
require_once("inc.ConversionInit.php");
require_once('inc.FulltextInit.php');
require_once('inc.AuthenticationInit.php');

View File

@ -14,6 +14,7 @@
global $logger;
require "inc.ClassExtensionMgr.php";
require_once "inc.ClassSchedulerTaskBase.php";
require_once "inc.ClassExtBase.php";
$extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir, $settings->_repositoryUrl, $settings->_proxyUrl, $settings->_proxyUser, $settings->_proxyPassword);

View File

@ -26,6 +26,7 @@ $fulltextservice = null;
if($settings->_enableFullSearch) {
require_once("inc.ClassFulltextService.php");
$fulltextservice = new SeedDMS_FulltextService();
$fulltextservice->setLogger($logger);
if($settings->_fullSearchEngine == 'sqlitefts') {
$indexconf = array(

View File

@ -174,6 +174,68 @@ function getReviewStatusText($status, $date=0) { /* {{{ */
}
} /* }}} */
function printReceiptStatusText($status, $date=0) { /* {{{ */
print getReceiptStatusText($status, $date);
} /* }}} */
function getReceiptStatusText($status, $date=0) { /* {{{ */
if (is_null($status)) {
return getMLText("status_unknown");
}
else {
switch ($status) {
case -2:
return getMLText("status_recipient_removed");
break;
case -1:
return getMLText("status_receipt_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
return getMLText("status_not_receipted");
break;
case 1:
return getMLText("status_receipted").($date !=0 ? " ".$date : "");
break;
default:
return getMLText("status_unknown");
break;
}
}
} /* }}} */
function printRevisionStatusText($status, $date=0) { /* {{{ */
print getRevisionStatusText($status, $date);
} /* }}} */
function getRevisionStatusText($status, $date=0) { /* {{{ */
if (is_null($status)) {
return getMLText("status_unknown");
}
else {
switch ($status) {
case -3:
return getMLText("status_revision_sleeping");
break;
case -2:
return getMLText("status_revisor_removed");
break;
case -1:
return getMLText("status_needs_correction").($date !=0 ? " ".$date : "");
return getMLText("status_revision_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
return getMLText("status_not_revised");
break;
case 1:
return getMLText("status_revised").($date !=0 ? " ".$date : "");
break;
default:
return getMLText("status_unknown");
break;
}
}
} /* }}} */
function printApprovalStatusText($status, $date=0) { /* {{{ */
if (is_null($status)) {
print getMLText("status_unknown");
@ -255,6 +317,15 @@ function getOverallStatusText($status) { /* {{{ */
case S_EXPIRED:
return getMLText("expired");
break;
case S_IN_REVISION:
return getMLText("in_revision");
break;
case S_DRAFT:
return getMLText("draft");
break;
case S_NEEDS_CORRECTION:
return getMLText("needs_correction");
break;
default:
return getMLText("status_unknown");
break;

17
inc/inc.Scheduler.php Normal file
View File

@ -0,0 +1,17 @@
<?php
/**
* Initialize scheduler
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2018 Uwe Steinmann
* @version Release: @package_version@
*/
require_once "inc.ClassSchedulerTaskBase.php";
require_once "inc.ClassScheduler.php";
require_once "inc.ClassSchedulerTask.php";

1047
inc/inc.Tasks.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -447,7 +447,7 @@ function utf8_basename($path, $suffix='') { /* {{{ */
* @return string valid file name
*/
function getFilenameByDocname($content) { /* {{{ */
if(is_string) {
if(is_string($content)) {
$filename = $content;
} else {
$document = $content->getDocument();
@ -795,6 +795,18 @@ function addDirSep($str, $chr=DIRECTORY_SEPARATOR) { /* {{{ */
} /* }}} */
/**
* Formats comments for aknowledge of reception.
*
* Only use in documentListRow()
*/
function formatComment($an) { /* {{{ */
$t = array();
foreach($an as $a)
$t[] = $a['n']." × ".$a['c'];
return $t;
} /* }}} */
/*
* Determines if a command exists on the current environment
*
* @param string $command The command to check
@ -970,6 +982,19 @@ function seed_pass_verify($password, $hash) { /* {{{ */
return $hash === md5($password);
} /* }}} */
function resolveTask($task) { /* {{{ */
global $dms, $user, $settings, $logger, $fulltextservice, $notifier, $conversionmgr;
if(is_object($task))
return $task;
if(is_string($task)) {
if(class_exists($task)) {
$task = new $task($dms, $user, $settings, $logger, $fulltextservice, $notifier, $conversionmgr);
}
}
return $task;
} /* }}} */
/**
* Return nonce for CSP
*

View File

@ -20,7 +20,7 @@
class SeedDMS_Version { /* {{{ */
const _number = "5.1.37";
const _number = "6.0.30";
const _string = "SeedDMS";
function __construct() {

View File

@ -47,19 +47,35 @@ CREATE TABLE `tblAttributeDefinitions` (
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers`
-- Table structure for table `tblRoles`
--
CREATE TABLE `tblRoles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`role` smallint(1) NOT NULL DEFAULT '0',
`noaccess` varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers`
--
CREATE TABLE `tblUsers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(50) DEFAULT NULL,
`pwd` varchar(50) DEFAULT NULL,
`secret` varchar(50) DEFAULT NULL,
`fullName` varchar(100) DEFAULT NULL,
`email` varchar(70) DEFAULT NULL,
`language` varchar(32) NOT NULL,
`theme` varchar(32) NOT NULL,
`comment` text NOT NULL,
`role` smallint(1) NOT NULL DEFAULT '0',
`role` int(11) NOT NULL,
`hidden` smallint(1) NOT NULL DEFAULT '0',
`pwdExpiration` datetime DEFAULT NULL,
`loginfailures` tinyint(4) NOT NULL DEFAULT '0',
@ -67,11 +83,28 @@ CREATE TABLE `tblUsers` (
`quota` bigint(20) DEFAULT NULL,
`homefolder` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`)
UNIQUE KEY `login` (`login`),
CONSTRAINT `tblUsers_role` FOREIGN KEY (`role`) REFERENCES `tblRoles` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblUserSubstitutes`
--
CREATE TABLE `tblUserSubstitutes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) DEFAULT null,
`substitute` int(11) DEFAULT null,
PRIMARY KEY (`id`),
UNIQUE KEY `user` (`user`,`substitute`),
CONSTRAINT `tblUserSubstitutes_user` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
);
-- --------------------------------------------------------
--
-- Table structure for table `tblUserPasswordRequest`
--
@ -222,6 +255,7 @@ CREATE TABLE `tblDocumentApprovers` (
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentApprovers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
-- --------------------------------------------------------
@ -262,6 +296,7 @@ CREATE TABLE `tblDocumentContent` (
`mimeType` varchar(100) NOT NULL DEFAULT '',
`fileSize` bigint(20) DEFAULT NULL,
`checksum` char(32) DEFAULT NULL,
`revisiondate` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `document` (`document`,`version`),
CONSTRAINT `tblDocumentContent_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`)
@ -350,6 +385,23 @@ CREATE TABLE `tblDocumentLocks` (
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentCheckOuts`
--
CREATE TABLE `tblDocumentCheckOuts` (
`document` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`userID` int(11) NOT NULL DEFAULT '0',
`date` datetime NOT NULL,
`filename` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`document`),
CONSTRAINT `tblDocumentCheckOuts_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentCheckOuts_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
@ -363,6 +415,7 @@ CREATE TABLE `tblDocumentReviewers` (
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentReviewers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
-- --------------------------------------------------------
@ -386,6 +439,83 @@ CREATE TABLE `tblDocumentReviewLog` (
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRecipients`
--
CREATE TABLE `tblDocumentRecipients` (
`receiptID` int(11) NOT NULL AUTO_INCREMENT,
`documentID` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`required` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`receiptID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentRecipients_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReceiptLog`
--
CREATE TABLE `tblDocumentReceiptLog` (
`receiptLogID` int(11) NOT NULL AUTO_INCREMENT,
`receiptID` int(11) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`date` datetime NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`receiptLogID`),
KEY `tblDocumentReceiptLog_receipt` (`receiptID`),
KEY `tblDocumentReceiptLog_user` (`userID`),
CONSTRAINT `tblDocumentReceiptLog_recipient` FOREIGN KEY (`receiptID`) REFERENCES `tblDocumentRecipients` (`receiptID`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentReceiptLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRevisors`
--
CREATE TABLE `tblDocumentRevisors` (
`revisionID` int(11) NOT NULL AUTO_INCREMENT,
`documentID` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`required` int(11) NOT NULL DEFAULT '0',
`startdate` datetime DEFAULT NULL,
PRIMARY KEY (`revisionID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentRevisors_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRevisionLog`
--
CREATE TABLE `tblDocumentRevisionLog` (
`revisionLogID` int(11) NOT NULL AUTO_INCREMENT,
`revisionID` int(11) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`date` datetime NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`revisionLogID`),
KEY `tblDocumentRevisionLog_revision` (`revisionID`),
KEY `tblDocumentRevisionLog_user` (`userID`),
CONSTRAINT `tblDocumentRevisionLog_revision` FOREIGN KEY (`revisionID`) REFERENCES `tblDocumentRevisors` (`revisionID`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentRevisionLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatus`
--
@ -608,6 +738,7 @@ CREATE TABLE `tblWorkflows` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`initstate` int(11) NOT NULL,
`layoutdata` text DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tblWorkflow_initstate` (`initstate`),
CONSTRAINT `tblWorkflow_initstate` FOREIGN KEY (`initstate`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
@ -674,53 +805,52 @@ CREATE TABLE `tblWorkflowTransitionGroups` (
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowLog`
--
CREATE TABLE `tblWorkflowLog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`document` int(11) DEFAULT NULL,
`version` smallint(5) DEFAULT NULL,
`workflow` int(11) DEFAULT NULL,
`userid` int(11) DEFAULT NULL,
`transition` int(11) DEFAULT NULL,
`date` datetime NOT NULL,
`comment` text,
PRIMARY KEY (`id`),
KEY `tblWorkflowLog_document` (`document`),
KEY `tblWorkflowLog_workflow` (`workflow`),
KEY `tblWorkflowLog_userid` (`userid`),
KEY `tblWorkflowLog_transition` (`transition`),
CONSTRAINT `tblWorkflowLog_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowLog_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowLog_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowLog_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowDocumentContent`
--
CREATE TABLE `tblWorkflowDocumentContent` (
`parentworkflow` int(11) DEFAULT '0',
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent` int(11) DEFAULT NULL,
`workflow` int(11) DEFAULT NULL,
`document` int(11) DEFAULT NULL,
`version` smallint(5) DEFAULT NULL,
`state` int(11) DEFAULT NULL,
`date` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `tblWorkflowDocument_document` (`document`),
KEY `tblWorkflowDocument_workflow` (`workflow`),
KEY `tblWorkflowDocument_state` (`state`),
CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocumentContent_parent` FOREIGN KEY (`parent`) REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowLog`
--
CREATE TABLE `tblWorkflowLog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`workflowdocumentcontent` int(11) NOT NULL DEFAULT '0',
`userid` int(11) DEFAULT NULL,
`transition` int(11) DEFAULT NULL,
`date` datetime NOT NULL,
`comment` text,
PRIMARY KEY (`id`),
KEY `tblWorkflowLog_userid` (`userid`),
KEY `tblWorkflowLog_transition` (`transition`),
KEY `tblWorkflowLog_workflowdocumentcontent` (`workflowdocumentcontent`),
CONSTRAINT `tblWorkflowLog_workflowdocumentcontent` FOREIGN KEY (`workflowdocumentcontent`) REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowLog_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblWorkflowLog_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowMandatoryWorkflow`
--
@ -736,6 +866,127 @@ CREATE TABLE `tblWorkflowMandatoryWorkflow` (
-- --------------------------------------------------------
--
-- Table structure for transmittal
--
CREATE TABLE `tblTransmittals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`comment` text NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
`date` datetime DEFAULT NULL,
`public` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
CONSTRAINT `tblTransmittals_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for transmittal item
--
CREATE TABLE `tblTransmittalItems` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transmittal` int(11) NOT NULL DEFAULT '0',
`document` int(11) DEFAULT NULL,
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE (transmittal, document, version),
CONSTRAINT `tblTransmittalItems_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblTransmittalItem_transmittal` FOREIGN KEY (`transmittal`) REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for cached read access
--
CREATE TABLE `tblCachedAccess` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`document` int(11) DEFAULT NULL,
`user` int(11) DEFAULT null,
`mode` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
CONSTRAINT `tblCachedAccess_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblCachedAccess_user` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for access request objects
--
CREATE TABLE `tblAros` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent` int(11),
`model` text NOT NULL,
`foreignid` int(11) NOT NULL DEFAULT '0',
`alias` varchar(255),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for access control objects
--
CREATE TABLE `tblAcos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parent` int(11),
`model` text NOT NULL,
`foreignid` int(11) NOT NULL DEFAULT '0',
`alias` varchar(255),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for acos/aros relation
--
CREATE TABLE `tblArosAcos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aro` int(11) NOT NULL DEFAULT '0',
`aco` int(11) NOT NULL DEFAULT '0',
`create` tinyint(4) NOT NULL DEFAULT '-1',
`read` tinyint(4) NOT NULL DEFAULT '-1',
`update` tinyint(4) NOT NULL DEFAULT '-1',
`delete` tinyint(4) NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`),
UNIQUE (aco, aro),
CONSTRAINT `tblArosAcos_acos` FOREIGN KEY (`aco`) REFERENCES `tblAcos` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblArosAcos_aros` FOREIGN KEY (`aro`) REFERENCES `tblAros` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblSchedulerTask`
--
CREATE TABLE `tblSchedulerTask` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`description` text DEFAULT NULL,
`disabled` smallint(1) NOT NULL DEFAULT '0',
`extension` varchar(100) DEFAULT NULL,
`task` varchar(100) DEFAULT NULL,
`frequency` varchar(100) DEFAULT NULL,
`params` text DEFAULT NULL,
`nextrun` datetime DEFAULT NULL,
`lastrun` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tblVersion`
--
@ -753,7 +1004,10 @@ CREATE TABLE `tblVersion` (
-- Initial content for database
--
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'info@seeddms.org', '', '', '', 1, 0, NULL, 0, 0, 0, NULL);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, 0, NULL);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (1, 'Admin', 1);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (2, 'Guest', 2);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'Administrator', 'info@seeddms.org', '', '', '', 1, 0, NULL, 0, 0, 0, NULL);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, '', 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, 0, NULL);
INSERT INTO tblFolders VALUES (1, 'DMS', 0, '', 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
INSERT INTO tblVersion VALUES (NOW(), 5, 1, 0);
INSERT INTO tblVersion VALUES (NOW(), 6, 0, 0);

View File

@ -43,6 +43,19 @@ CREATE TABLE "tblAttributeDefinitions" (
-- --------------------------------------------------------
--
-- Table structure for table `tblRoles`
--
CREATE TABLE "tblRoles" (
"id" SERIAL UNIQUE,
"name" varchar(50) default NULL,
"role" INTEGER NOT NULL default '0',
"noaccess" varchar(30) NOT NULL default ''
) ;
-- --------------------------------------------------------
--
-- Table structure for table "tblUsers"
--
@ -51,6 +64,7 @@ CREATE TABLE "tblUsers" (
"id" SERIAL UNIQUE,
"login" varchar(50) default NULL,
"pwd" varchar(50) default NULL,
"secret" varchar(50) default NULL,
"fullName" varchar(100) default NULL,
"email" varchar(70) default NULL,
"language" varchar(32) NOT NULL,
@ -68,6 +82,18 @@ CREATE TABLE "tblUsers" (
-- --------------------------------------------------------
--
-- Table structure for table `tblUserSubstitutes`
--
CREATE TABLE "tblUserSubstitutes" (
"id" SERIAL UNIQUE,
"user" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
"substitute" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
-- --------------------------------------------------------
--
-- Table structure for table "tblUserPasswordRequest"
--
@ -225,6 +251,7 @@ CREATE TABLE "tblDocumentContent" (
"mimeType" varchar(100) NOT NULL default '',
"fileSize" BIGINT,
"checksum" char(32),
"revisiondate" TIMESTAMP default NULL,
UNIQUE ("document","version")
) ;
@ -290,6 +317,21 @@ CREATE TABLE "tblDocumentLocks" (
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentCheckOuts`
--
CREATE TABLE "tblDocumentCheckOuts" (
"document" INTEGER REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER NOT NULL default '0',
"userID" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id"),
"date" TEXT NOT NULL,
"filename" varchar(255) NOT NULL default '',
UNIQUE ("document")
) ;
-- --------------------------------------------------------
--
-- Table structure for table "tblDocumentReviewers"
--
@ -320,6 +362,67 @@ CREATE TABLE "tblDocumentReviewLog" (
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRecipients`
--
CREATE TABLE "tblDocumentRecipients" (
"receiptID" SERIAL UNIQUE,
"documentID" INTEGER NOT NULL default '0' REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER NOT NULL default '0',
"type" INTEGER NOT NULL default '0',
"required" INTEGER NOT NULL default '0',
UNIQUE ("documentID","version","type","required")
) ;
-- --------------------------------------------------------
--
-- Table structure for table "tblDocumentReceiptLog"
--
CREATE TABLE "tblDocumentReceiptLog" (
"receiptLogID" SERIAL UNIQUE,
"receiptID" INTEGER NOT NULL default 0 REFERENCES "tblDocumentRecipients" ("receiptID") ON DELETE CASCADE,
"status" INTEGER NOT NULL default 0,
"comment" TEXT NOT NULL,
"date" TEXT NOT NULL,
"userID" INTEGER NOT NULL default 0 REFERENCES "tblUsers" ("id") ON DELETE CASCADE
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRevisors`
--
CREATE TABLE "tblDocumentRevisors" (
"revisionID" SERIAL UNIQUE,
"documentID" INTEGER NOT NULL default '0' REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER NOT NULL default '0',
"type" INTEGER NOT NULL default '0',
"required" INTEGER NOT NULL default '0',
"startdate" TIMESTAMP default NULL,
UNIQUE ("documentID","version","type","required")
) ;
-- --------------------------------------------------------
--
-- Table structure for table "tblDocumentRevisionLog"
--
CREATE TABLE "tblDocumentRevisionLog" (
"revisionLogID" SERIAL UNIQUE,
"revisionID" INTEGER NOT NULL default 0 REFERENCES "tblDocumentRevisors" ("revisionID") ON DELETE CASCADE,
"status" INTEGER NOT NULL default 0,
"comment" TEXT NOT NULL,
"date" TIMESTAMP default NULL,
"userID" INTEGER NOT NULL default 0 REFERENCES "tblUsers" ("id") ON DELETE CASCADE
) ;
-- --------------------------------------------------------
--
-- Table structure for table "tblDocumentStatus"
--
@ -433,7 +536,7 @@ CREATE TABLE "tblSessions" (
"theme" varchar(30) NOT NULL default '',
"language" varchar(30) NOT NULL default '',
"clipboard" text default NULL,
"su" INTEGER DEFAULT NULL,
"su" INTEGER DEFAULT NULL,
"splashmsg" text default NULL
) ;
@ -514,7 +617,8 @@ CREATE TABLE "tblWorkflowActions" (
CREATE TABLE "tblWorkflows" (
"id" SERIAL UNIQUE,
"name" text NOT NULL,
"initstate" INTEGER NOT NULL REFERENCES "tblWorkflowStates" ("id") ON DELETE CASCADE
"initstate" INTEGER NOT NULL REFERENCES "tblWorkflowStates" ("id") ON DELETE CASCADE,
"layoutdata" text default NULL
) ;
-- --------------------------------------------------------
@ -559,29 +663,13 @@ CREATE TABLE "tblWorkflowTransitionGroups" (
-- --------------------------------------------------------
--
-- Table structure for workflow log
--
CREATE TABLE "tblWorkflowLog" (
"id" SERIAL UNIQUE,
"document" INTEGER default NULL REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER default NULL,
"workflow" INTEGER default NULL REFERENCES "tblWorkflows" ("id") ON DELETE CASCADE,
"userid" INTEGER default NULL REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
"transition" INTEGER default NULL REFERENCES "tblWorkflowTransitions" ("id") ON DELETE CASCADE,
"date" TIMESTAMP default NULL,
"comment" text
) ;
-- --------------------------------------------------------
--
-- Table structure for workflow document relation
--
CREATE TABLE "tblWorkflowDocumentContent" (
"parentworkflow" INTEGER DEFAULT 0,
"id" SERIAL UNIQUE,
"parent" INTEGER DEFAULT NULL REFERENCES "tblWorkflowDocumentContent" ("id") ON DELETE CASCADE,
"workflow" INTEGER DEFAULT NULL REFERENCES "tblWorkflows" ("id") ON DELETE CASCADE,
"document" INTEGER DEFAULT NULL REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER DEFAULT NULL,
@ -591,6 +679,21 @@ CREATE TABLE "tblWorkflowDocumentContent" (
-- --------------------------------------------------------
--
-- Table structure for workflow log
--
CREATE TABLE "tblWorkflowLog" (
"id" SERIAL UNIQUE,
"workflowdocumentcontent" INTEGER DEFAULT NULL REFERENCES "tblWorkflowDocumentContent" ("id") ON DELETE CASCADE,
"userid" INTEGER default NULL REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
"transition" INTEGER default NULL REFERENCES "tblWorkflowTransitions" ("id") ON DELETE CASCADE,
"date" TIMESTAMP default NULL,
"comment" text
) ;
-- --------------------------------------------------------
--
-- Table structure for mandatory workflows
--
@ -603,6 +706,101 @@ CREATE TABLE "tblWorkflowMandatoryWorkflow" (
-- --------------------------------------------------------
--
-- Table structure for transmittal
--
CREATE TABLE "tblTransmittals" (
"id" SERIAL UNIQUE,
"name" text NOT NULL,
"comment" text NOT NULL,
"userID" INTEGER NOT NULL default '0' REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
"date" TIMESTAMP default NULL,
"public" INTEGER NOT NULL default '0'
);
-- --------------------------------------------------------
--
-- Table structure for transmittal item
--
CREATE TABLE "tblTransmittalItems" (
"id" SERIAL UNIQUE,
"transmittal" INTEGER NOT NULL DEFAULT '0' REFERENCES "tblTransmittals" ("id") ON DELETE CASCADE,
"document" INTEGER default NULL REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
"version" INTEGER NOT NULL default '0',
"date" TIMESTAMP default NULL,
UNIQUE (transmittal, document, version)
);
-- --------------------------------------------------------
--
-- Table structure for access request objects
--
CREATE TABLE "tblAros" (
"id" SERIAL UNIQUE,
"parent" INTEGER,
"model" TEXT NOT NULL,
"foreignid" INTEGER NOT NULL DEFAULT '0',
"alias" TEXT
) ;
-- --------------------------------------------------------
--
-- Table structure for access control objects
--
CREATE TABLE "tblAcos" (
"id" SERIAL UNIQUE,
"parent" INTEGER,
"model" TEXT NOT NULL,
"foreignid" INTEGER NOT NULL DEFAULT '0',
"alias" TEXT
) ;
-- --------------------------------------------------------
--
-- Table structure for acos/aros relation
--
CREATE TABLE "tblArosAcos" (
"id" SERIAL UNIQUE,
"aro" INTEGER NOT NULL DEFAULT '0' REFERENCES "tblAros" ("id") ON DELETE CASCADE,
"aco" INTEGER NOT NULL DEFAULT '0' REFERENCES "tblAcos" ("id") ON DELETE CASCADE,
"create" INTEGER NOT NULL DEFAULT '-1',
"read" INTEGER NOT NULL DEFAULT '-1',
"update" INTEGER NOT NULL DEFAULT '-1',
"delete" INTEGER NOT NULL DEFAULT '-1',
UNIQUE (aco, aro)
) ;
-- --------------------------------------------------------
--
-- Table structure for tblSchedulerTask
--
CREATE TABLE "tblSchedulerTask" (
"id" SERIAL UNIQUE,
"name" varchar(100) DEFAULT NULL,
"description" TEXT DEFAULT NULL,
"disabled" INTEGER NOT NULL DEFAULT '0',
"extension" varchar(100) DEFAULT NULL,
"task" varchar(100) DEFAULT NULL,
"frequency" varchar(100) DEFAULT NULL,
"params" TEXT DEFAULT NULL,
"nextrun" TIMESTAMP DEFAULT NULL,
"lastrun" TIMESTAMP DEFAULT NULL
) ;
-- --------------------------------------------------------
--
-- Table structure for version
--
@ -620,10 +818,16 @@ CREATE TABLE "tblVersion" (
-- Initial content for database
--
INSERT INTO "tblUsers" VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'info@seeddms.org', '', '', '', 1, 0, NULL, 0, 0, 0, NULL);
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (1, 'Admin', 1);
SELECT nextval('"tblRoles_id_seq"');
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (2, 'Guest', 2);
SELECT nextval('"tblRoles_id_seq"');
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (3, 'User', 0);
SELECT nextval('"tblRoles_id_seq"');
INSERT INTO "tblUsers" VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'Administrator', 'info@seeddms.org', '', '', '', 1, 0, NULL, 0, 0, 0, NULL);
SELECT nextval('"tblUsers_id_seq"');
INSERT INTO "tblUsers" VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, 0, NULL);
INSERT INTO "tblUsers" VALUES (2, 'guest', NULL, '', 'Guest User', NULL, '', '', '', 2, 0, NULL, 0, 0, 0, NULL);
SELECT nextval('"tblUsers_id_seq"');
INSERT INTO "tblFolders" VALUES (1, 'DMS', 0, '', 'DMS root', extract(epoch from now()), 1, 0, 2, 0);
SELECT nextval('"tblFolders_id_seq"');
INSERT INTO "tblVersion" VALUES (CURRENT_TIMESTAMP, 5, 1, 0);
INSERT INTO "tblVersion" VALUES (CURRENT_TIMESTAMP, 6, 0, 0);

View File

@ -43,6 +43,20 @@ CREATE TABLE `tblAttributeDefinitions` (
-- --------------------------------------------------------
--
-- Table structure for table `tblRoles`
--
CREATE TABLE `tblRoles` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` varchar(50) default NULL,
`role` INTEGER NOT NULL default '0',
`noaccess` varchar(30) NOT NULL default '',
UNIQUE (`name`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers`
--
@ -51,12 +65,13 @@ CREATE TABLE `tblUsers` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`login` varchar(50) default NULL,
`pwd` varchar(50) default NULL,
`secret` varchar(50) default NULL,
`fullName` varchar(100) default NULL,
`email` varchar(70) default NULL,
`language` varchar(32) NOT NULL,
`theme` varchar(32) NOT NULL,
`comment` text NOT NULL,
`role` INTEGER NOT NULL default '0',
`role` INTEGER NOT NULL REFERENCES `tblRoles` (`id`),
`hidden` INTEGER NOT NULL default '0',
`pwdExpiration` TEXT default NULL,
`loginfailures` INTEGER NOT NULL default '0',
@ -68,6 +83,19 @@ CREATE TABLE `tblUsers` (
-- --------------------------------------------------------
--
-- Table structure for table `tblUserSubstitutes`
--
CREATE TABLE `tblUserSubstitutes` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`user` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`substitute` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
UNIQUE (`user`, `substitute`)
);
-- --------------------------------------------------------
--
-- Table structure for table `tblUserPasswordRequest`
--
@ -135,7 +163,7 @@ CREATE TABLE `tblFolderAttributes` (
`folder` INTEGER default NULL REFERENCES `tblFolders` (`id`) ON DELETE CASCADE,
`attrdef` INTEGER default NULL REFERENCES `tblAttributeDefinitions` (`id`),
`value` text default NULL,
UNIQUE (folder, attrdef)
UNIQUE (`folder`, `attrdef`)
) ;
-- --------------------------------------------------------
@ -171,7 +199,7 @@ CREATE TABLE `tblDocumentAttributes` (
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`attrdef` INTEGER default NULL REFERENCES `tblAttributeDefinitions` (`id`),
`value` text default NULL,
UNIQUE (document, attrdef)
UNIQUE (`document`, `attrdef`)
) ;
-- --------------------------------------------------------
@ -188,6 +216,7 @@ CREATE TABLE `tblDocumentApprovers` (
`required` INTEGER NOT NULL default '0',
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
-- --------------------------------------------------------
@ -203,6 +232,7 @@ CREATE TABLE `tblDocumentApproveLog` (
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentApproveLogApproveID` ON `tblDocumentApproveLog` (`approveID`);
-- --------------------------------------------------------
@ -223,6 +253,7 @@ CREATE TABLE `tblDocumentContent` (
`mimeType` varchar(100) NOT NULL default '',
`fileSize` INTEGER,
`checksum` char(32),
`revisiondate` TEXT default NULL,
UNIQUE (`document`,`version`)
) ;
@ -237,7 +268,7 @@ CREATE TABLE `tblDocumentContentAttributes` (
`content` INTEGER default NULL REFERENCES `tblDocumentContent` (`id`) ON DELETE CASCADE,
`attrdef` INTEGER default NULL REFERENCES `tblAttributeDefinitions` (`id`),
`value` text default NULL,
UNIQUE (content, attrdef)
UNIQUE (`content`, `attrdef`)
) ;
-- --------------------------------------------------------
@ -288,6 +319,21 @@ CREATE TABLE `tblDocumentLocks` (
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentCheckOuts`
--
CREATE TABLE `tblDocumentCheckOuts` (
`document` INTEGER REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`),
`date` TEXT NOT NULL,
`filename` varchar(255) NOT NULL default '',
UNIQUE (`document`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
@ -300,6 +346,7 @@ CREATE TABLE `tblDocumentReviewers` (
`required` INTEGER NOT NULL default '0',
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
-- --------------------------------------------------------
@ -315,6 +362,72 @@ CREATE TABLE `tblDocumentReviewLog` (
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentReviewLogReviewID` ON `tblDocumentReviewLog` (`reviewID`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRecipients`
--
CREATE TABLE `tblDocumentRecipients` (
`receiptID` INTEGER PRIMARY KEY AUTOINCREMENT,
`documentID` INTEGER NOT NULL default '0' REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`type` INTEGER NOT NULL default '0',
`required` INTEGER NOT NULL default '0',
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReceiptLog`
--
CREATE TABLE `tblDocumentReceiptLog` (
`receiptLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
`receiptID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentRecipients` (`receiptID`) ON DELETE CASCADE,
`status` INTEGER NOT NULL default 0,
`comment` TEXT NOT NULL,
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentReceiptLogReceiptID` ON `tblDocumentReceiptLog` (`receiptID`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRevisors`
--
CREATE TABLE `tblDocumentRevisors` (
`revisionID` INTEGER PRIMARY KEY AUTOINCREMENT,
`documentID` INTEGER NOT NULL default '0' REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`type` INTEGER NOT NULL default '0',
`required` INTEGER NOT NULL default '0',
`startdate` TEXT default NULL,
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentRevisionLog`
--
CREATE TABLE `tblDocumentRevisionLog` (
`revisionLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
`revisionID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentRevisors` (`revisionID`) ON DELETE CASCADE,
`status` INTEGER NOT NULL default 0,
`comment` TEXT NOT NULL,
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentRevisionLogRevisionID` ON `tblDocumentRevisionLog` (`revisionID`);
-- --------------------------------------------------------
@ -343,6 +456,7 @@ CREATE TABLE `tblDocumentStatusLog` (
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentStatusLogStatusID` ON `tblDocumentStatusLog` (`StatusID`);
-- --------------------------------------------------------
@ -512,7 +626,8 @@ CREATE TABLE `tblWorkflowActions` (
CREATE TABLE `tblWorkflows` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` text NOT NULL,
`initstate` INTEGER NOT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
`initstate` INTEGER NOT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
`layoutdata` text default NULL
) ;
-- --------------------------------------------------------
@ -557,29 +672,13 @@ CREATE TABLE `tblWorkflowTransitionGroups` (
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowLog`
--
CREATE TABLE `tblWorkflowLog` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER default NULL,
`workflow` INTEGER default NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
`date` datetime NOT NULL,
`comment` text
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowDocumentContent`
--
CREATE TABLE `tblWorkflowDocumentContent` (
`parentworkflow` INTEGER DEFAULT 0,
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER DEFAULT NULL REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
`workflow` INTEGER DEFAULT NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
`document` INTEGER DEFAULT NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER DEFAULT NULL,
@ -589,6 +688,21 @@ CREATE TABLE `tblWorkflowDocumentContent` (
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowLog`
--
CREATE TABLE `tblWorkflowLog` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`workflowdocumentcontent` INTEGER DEFAULT NULL REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
`date` datetime NOT NULL,
`comment` text
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblWorkflowMandatoryWorkflow`
--
@ -596,7 +710,102 @@ CREATE TABLE `tblWorkflowDocumentContent` (
CREATE TABLE `tblWorkflowMandatoryWorkflow` (
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`workflow` INTEGER default NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
UNIQUE(userid, workflow)
UNIQUE(`userid`, `workflow`)
) ;
-- --------------------------------------------------------
--
-- Table structure for transmittal
--
CREATE TABLE `tblTransmittals` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` text NOT NULL,
`comment` text NOT NULL,
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`date` TEXT default NULL,
`public` INTEGER NOT NULL default '0'
);
-- --------------------------------------------------------
--
-- Table structure for transmittal item
--
CREATE TABLE `tblTransmittalItems` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`transmittal` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE,
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`date` TEXT default NULL,
UNIQUE (`transmittal`, `document`, `version`)
);
-- --------------------------------------------------------
--
-- Table structure for access request objects
--
CREATE TABLE `tblAros` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER,
`model` TEXT NOT NULL,
`foreignid` INTEGER NOT NULL DEFAULT '0',
`alias` TEXT
) ;
-- --------------------------------------------------------
--
-- Table structure for access control objects
--
CREATE TABLE `tblAcos` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER,
`model` TEXT NOT NULL,
`foreignid` INTEGER NOT NULL DEFAULT '0',
`alias` TEXT
) ;
-- --------------------------------------------------------
--
-- Table structure for acos/aros relation
--
CREATE TABLE `tblArosAcos` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`aro` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblAros` (`id`) ON DELETE CASCADE,
`aco` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblAcos` (`id`) ON DELETE CASCADE,
`create` INTEGER NOT NULL DEFAULT '-1',
`read` INTEGER NOT NULL DEFAULT '-1',
`update` INTEGER NOT NULL DEFAULT '-1',
`delete` INTEGER NOT NULL DEFAULT '-1',
UNIQUE (`aco`, `aro`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblSchedulerTask`
--
CREATE TABLE `tblSchedulerTask` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` varchar(100) DEFAULT NULL,
`description` TEXT DEFAULT NULL,
`disabled` INTEGER NOT NULL DEFAULT '0',
`extension` varchar(100) DEFAULT NULL,
`task` varchar(100) DEFAULT NULL,
`frequency` varchar(100) DEFAULT NULL,
`params` TEXT DEFAULT NULL,
`nextrun` TEXT DEFAULT NULL,
`lastrun` TEXT DEFAULT NULL
) ;
-- --------------------------------------------------------
@ -618,7 +827,10 @@ CREATE TABLE `tblVersion` (
-- Initial content for database
--
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (1, 'Admin', 1);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (2, 'Guest', 2);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
INSERT INTO `tblUsers` (`id`, `login`, `pwd`, `fullName`, `email`, `language`, `theme`, `comment`, `role`, `hidden`, `pwdExpiration`, `loginfailures`, `disabled`, `quota`, `homefolder`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'info@seeddms.org', '', '', '', 1, 0, '', 0, 0, 0, NULL);
INSERT INTO `tblUsers` (`id`, `login`, `pwd`, `fullName`, `email`, `language`, `theme`, `comment`, `role`, `hidden`, `pwdExpiration`, `loginfailures`, `disabled`, `quota`, `homefolder`) VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, '', 0, 0, 0, NULL);
INSERT INTO `tblFolders` (`id`, `name`, `parent`, `folderList`, `comment`, `date`, `owner`, `inheritAccess`, `defaultAccess`, `sequence`) VALUES (1, 'DMS', NULL, '', 'DMS root', strftime('%s','now'), 1, 0, 2, 0);
INSERT INTO `tblVersion` VALUES (DATETIME(), 5, 1, 0);
INSERT INTO `tblVersion` VALUES (DATETIME(), 6, 0, 0);

View File

@ -0,0 +1,181 @@
START TRANSACTION;
ALTER TABLE "tblDocumentContent" ADD COLUMN "revisiondate" TIMESTAMP default NULL;
ALTER TABLE "tblUsers" ADD COLUMN "secret" varchar(50) default NULL;
ALTER TABLE "tblWorkflows" ADD COLUMN "layoutdata" text default NULL;
ALTER TABLE "tblWorkflowDocumentContent" ADD COLUMN "id" SERIAL UNIQUE;
ALTER TABLE "tblWorkflowLog" ADD COLUMN "workflowdocumentcontent" INTEGER NOT NULL DEFAULT '0';
UPDATE "tblWorkflowLog" SET "workflowdocumentcontent" = "tblWorkflowDocumentContent"."id" FROM "tblWorkflowDocumentContent" WHERE "tblWorkflowLog"."document" = "tblWorkflowDocumentContent"."document" AND "tblWorkflowLog"."version" = "tblWorkflowDocumentContent"."version" AND "tblWorkflowLog"."workflow" = "tblWorkflowDocumentContent"."workflow";
INSERT INTO "tblWorkflowDocumentContent" ("parentworkflow", "workflow", "document", "version", "state", "date") SELECT 0 AS "parentworkflow", "workflow", "document", "version", NULL AS "state", max("date") AS "date" FROM "tblWorkflowLog" WHERE "workflowdocumentcontent" = 0 GROUP BY "workflow", "document", "version";
UPDATE "tblWorkflowLog" SET "workflowdocumentcontent" = "tblWorkflowDocumentContent"."id" FROM "tblWorkflowDocumentContent" WHERE "tblWorkflowLog"."document" = "tblWorkflowDocumentContent"."document" AND "tblWorkflowLog"."version" = "tblWorkflowDocumentContent"."version" AND "tblWorkflowLog"."workflow" = "tblWorkflowDocumentContent"."workflow";
ALTER TABLE "tblWorkflowLog" ADD CONSTRAINT "tblWorkflowLog_workflowdocumentcontent" FOREIGN KEY ("workflowdocumentcontent") REFERENCES "tblWorkflowDocumentContent" ("id") ON DELETE CASCADE;
ALTER TABLE "tblWorkflowDocumentContent" ADD COLUMN "parent" INTEGER DEFAULT NULL;
ALTER TABLE "tblWorkflowDocumentContent" ADD CONSTRAINT "tblWorkflowDocumentContent_parent" FOREIGN KEY ("parent") REFERENCES "tblWorkflowDocumentContent" ("id") ON DELETE CASCADE;
ALTER TABLE "tblWorkflowDocumentContent" DROP COLUMN "parentworkflow";
ALTER TABLE "tblWorkflowLog" DROP COLUMN "document";
ALTER TABLE "tblWorkflowLog" DROP COLUMN "version";
ALTER TABLE "tblWorkflowLog" DROP COLUMN "workflow";
CREATE TABLE "tblUserSubstitutes" (
"id" SERIAL UNIQUE,
"user" INTEGER default null,
"substitute" INTEGER default null,
UNIQUE ("user", "substitute"),
CONSTRAINT "tblUserSubstitutes_user" FOREIGN KEY ("user") REFERENCES "tblUsers" ("id") ON DELETE CASCADE,
CONSTRAINT "tblUserSubstitutes_substitute" FOREIGN KEY ("user") REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblDocumentCheckOuts" (
"document" INTEGER NOT NULL default '0',
"version" INTEGER NOT NULL default '0',
"userID" INTEGER NOT NULL default '0',
"date" TIMESTAMP NOT NULL,
"filename" varchar(255) NOT NULL default '',
CONSTRAINT "tblDocumentCheckOuts_document" FOREIGN KEY ("document") REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
CONSTRAINT "tblDocumentCheckOuts_user" FOREIGN KEY ("userID") REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblDocumentRecipients" (
"receiptID" SERIAL UNIQUE,
"documentID" INTEGER NOT NULL default '0',
"version" INTEGER NOT NULL default '0',
"type" INTEGER NOT NULL default '0',
"required" INTEGER NOT NULL default '0',
UNIQUE ("documentID","version","type","required"),
CONSTRAINT "tblDocumentRecipients_document" FOREIGN KEY ("documentID") REFERENCES "tblDocuments" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblDocumentReceiptLog" (
"receiptLogID" SERIAL UNIQUE,
"receiptID" INTEGER NOT NULL default '0',
"status" INTEGER NOT NULL default '0',
"comment" text NOT NULL,
"date" TIMESTAMP NOT NULL,
"userID" INTEGER NOT NULL default '0',
CONSTRAINT "tblDocumentReceiptLog_recipient" FOREIGN KEY ("receiptID") REFERENCES "tblDocumentRecipients" ("receiptID") ON DELETE CASCADE,
CONSTRAINT "tblDocumentReceiptLog_user" FOREIGN KEY ("userID") REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblDocumentRevisors" (
"revisionID" SERIAL UNIQUE,
"documentID" INTEGER NOT NULL default '0',
"version" INTEGER NOT NULL default '0',
"type" INTEGER NOT NULL default '0',
"required" INTEGER NOT NULL default '0',
"startdate" TIMESTAMP default NULL,
UNIQUE ("documentID","version","type","required"),
CONSTRAINT "tblDocumentRevisors_document" FOREIGN KEY ("documentID") REFERENCES "tblDocuments" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblDocumentRevisionLog" (
"revisionLogID" SERIAL UNIQUE,
"revisionID" INTEGER NOT NULL default '0',
"status" INTEGER NOT NULL default '0',
"comment" text NOT NULL,
"date" TIMESTAMP NOT NULL,
"userID" INTEGER NOT NULL default '0',
CONSTRAINT "tblDocumentRevisionLog_revision" FOREIGN KEY ("revisionID") REFERENCES "tblDocumentRevisors" ("revisionID") ON DELETE CASCADE,
CONSTRAINT "tblDocumentRevisionLog_user" FOREIGN KEY ("userID") REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblTransmittals" (
"id" SERIAL UNIQUE,
"name" text NOT NULL,
"comment" text NOT NULL,
"userID" INTEGER NOT NULL default '0',
"date" TIMESTAMP default NULL,
"public" INTEGER NOT NULL default '0',
CONSTRAINT "tblTransmittals_user" FOREIGN KEY ("userID") REFERENCES "tblUsers" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblTransmittalItems" (
"id" SERIAL UNIQUE,
"transmittal" INTEGER NOT NULL DEFAULT '0',
"document" INTEGER default NULL,
"version" INTEGER NOT NULL default '0',
"date" TIMESTAMP default NULL,
UNIQUE ("transmittal", "document", "version"),
CONSTRAINT "tblTransmittalItems_document" FOREIGN KEY ("document") REFERENCES "tblDocuments" ("id") ON DELETE CASCADE,
CONSTRAINT "tblTransmittalItem_transmittal" FOREIGN KEY ("transmittal") REFERENCES "tblTransmittals" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblRoles" (
"id" SERIAL UNIQUE,
"name" varchar(50) default NULL,
"role" INTEGER NOT NULL default '0',
"noaccess" varchar(30) NOT NULL default '',
UNIQUE ("name")
);
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (1, 'Admin', 1);
SELECT nextval('"tblRoles_id_seq"');
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (2, 'Guest', 2);
SELECT nextval('"tblRoles_id_seq"');
INSERT INTO "tblRoles" ("id", "name", "role") VALUES (3, 'User', 0);
SELECT nextval('"tblRoles_id_seq"');
ALTER TABLE "tblUsers" ALTER "role" DROP DEFAULT;
ALTER TABLE "tblUsers" ALTER "role" SET NOT NULL;
UPDATE "tblUsers" SET role=3 WHERE role=0;
ALTER TABLE "tblUsers" ADD CONSTRAINT "tblUsers_role" FOREIGN KEY ("role") REFERENCES "tblRoles" ("id");
CREATE TABLE "tblAros" (
"id" SERIAL UNIQUE,
"parent" INTEGER,
"model" text NOT NULL,
"foreignid" INTEGER NOT NULL DEFAULT '0',
"alias" varchar(255)
);
CREATE TABLE "tblAcos" (
"id" SERIAL UNIQUE,
"parent" INTEGER,
"model" text NOT NULL,
"foreignid" INTEGER NOT NULL DEFAULT '0',
"alias" varchar(255)
);
CREATE TABLE "tblArosAcos" (
"id" SERIAL UNIQUE,
"aro" INTEGER NOT NULL DEFAULT '0',
"aco" INTEGER NOT NULL DEFAULT '0',
"create" INTEGER NOT NULL DEFAULT '-1',
"read" INTEGER NOT NULL DEFAULT '-1',
"update" INTEGER NOT NULL DEFAULT '-1',
"delete" INTEGER NOT NULL DEFAULT '-1',
UNIQUE ("aco", "aro"),
CONSTRAINT "tblArosAcos_acos" FOREIGN KEY ("aco") REFERENCES "tblAcos" ("id") ON DELETE CASCADE,
CONSTRAINT "tblArosAcos_aros" FOREIGN KEY ("aro") REFERENCES "tblAros" ("id") ON DELETE CASCADE
);
CREATE TABLE "tblSchedulerTask" (
"id" SERIAL UNIQUE,
"name" varchar(100) DEFAULT NULL,
"description" TEXT DEFAULT NULL,
"disabled" INTEGER NOT NULL DEFAULT '0',
"extension" varchar(100) DEFAULT NULL,
"task" varchar(100) DEFAULT NULL,
"frequency" varchar(100) DEFAULT NULL,
"params" TEXT DEFAULT NULL,
"nextrun" TIMESTAMP DEFAULT NULL,
"lastrun" TIMESTAMP DEFAULT NULL
) ;
UPDATE "tblVersion" set "major"=6, "minor"=0, "subminor"=0;
COMMIT;

View File

@ -0,0 +1,206 @@
BEGIN;
ALTER TABLE `tblDocumentContent` ADD COLUMN `revisiondate` TEXT default NULL;
ALTER TABLE `tblUsers` ADD COLUMN `secret` varchar(50) default NULL;
ALTER TABLE `tblWorkflows` ADD COLUMN `layoutdata` text default NULL;
CREATE TABLE `new_tblWorkflowDocumentContent` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER DEFAULT NULL REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
`workflow` INTEGER DEFAULT NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
`document` INTEGER DEFAULT NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER DEFAULT NULL,
`state` INTEGER DEFAULT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
`date` datetime NOT NULL
) ;
INSERT INTO `new_tblWorkflowDocumentContent` (`parent`, `workflow`, `document`, `version`, `state`, `date`) SELECT NULL as `parent`, `workflow`, `document`, `version`, `state`, `date` FROM `tblWorkflowDocumentContent`;
INSERT INTO `new_tblWorkflowDocumentContent` (`parent`, `workflow`, `document`, `version`, `state`, `date`) SELECT NULL, `a`.`workflow`, `a`.`document`, `a`.`version`, NULL AS `state`, max(`a`.`date`) FROM `tblWorkflowLog` `a` LEFT JOIN `tblWorkflowDocumentContent` `b` ON `a`.`document`=`b`.`document` AND `a`.`version`=`b`.`version` AND `a`.`workflow`=`b`.`workflow` WHERE `b`.`document` IS NULL GROUP BY `a`.`document`, `a`.`version`, `a`.`workflow`;
CREATE TABLE `new_tblWorkflowLog` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`workflowdocumentcontent` INTEGER DEFAULT NULL REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE,
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
`date` datetime NOT NULL,
`comment` text
) ;
INSERT INTO `new_tblWorkflowLog` (`id`, `workflowdocumentcontent`, `userid`, `transition`, `date`, `comment`) SELECT `a`.`id`, `b`.`id`, `a`.`userid`, `a`.`transition`, `a`.`date`, `a`.`comment` FROM `tblWorkflowLog` `a` LEFT JOIN `new_tblWorkflowDocumentContent` `b` ON `a`.`document`=`b`.`document` AND `a`.`version`=`b`.`version` AND `a`.`workflow`=`b`.`workflow` WHERE `b`.`document` IS NOT NULL;
DROP TABLE `tblWorkflowLog`;
ALTER TABLE `new_tblWorkflowLog` RENAME TO `tblWorkflowLog`;
DROP TABLE `tblWorkflowDocumentContent`;
ALTER TABLE `new_tblWorkflowDocumentContent` RENAME TO `tblWorkflowDocumentContent`;
CREATE TABLE `tblUserSubstitutes` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`user` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`substitute` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
UNIQUE (`user`, `substitute`)
);
CREATE TABLE `tblDocumentCheckOuts` (
`document` INTEGER REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`),
`date` TEXT NOT NULL,
`filename` varchar(255) NOT NULL default '',
UNIQUE (`document`)
) ;
CREATE TABLE `tblDocumentRecipients` (
`receiptID` INTEGER PRIMARY KEY AUTOINCREMENT,
`documentID` INTEGER NOT NULL default '0' REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`type` INTEGER NOT NULL default '0',
`required` INTEGER NOT NULL default '0',
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
CREATE TABLE `tblDocumentReceiptLog` (
`receiptLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
`receiptID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentRecipients` (`receiptID`) ON DELETE CASCADE,
`status` INTEGER NOT NULL default 0,
`comment` TEXT NOT NULL,
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentReceiptLogReceiptID` ON `tblDocumentReceiptLog` (`receiptID`);
CREATE TABLE `tblDocumentRevisors` (
`revisionID` INTEGER PRIMARY KEY AUTOINCREMENT,
`documentID` INTEGER NOT NULL default '0' REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`type` INTEGER NOT NULL default '0',
`required` INTEGER NOT NULL default '0',
`startdate` TEXT default NULL,
UNIQUE (`documentID`,`version`,`type`,`required`)
) ;
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
CREATE TABLE `tblDocumentRevisionLog` (
`revisionLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
`revisionID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentRevisors` (`revisionID`) ON DELETE CASCADE,
`status` INTEGER NOT NULL default 0,
`comment` TEXT NOT NULL,
`date` TEXT NOT NULL,
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ;
CREATE INDEX `indDocumentRevisionLogRevisionID` ON `tblDocumentRevisionLog` (`revisionID`);
CREATE TABLE `tblTransmittals` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` text NOT NULL,
`comment` text NOT NULL,
`userID` INTEGER NOT NULL default '0' REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
`date` TEXT default NULL,
`public` INTEGER NOT NULL default '0'
);
CREATE TABLE `tblTransmittalItems` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`transmittal` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE,
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
`version` INTEGER unsigned NOT NULL default '0',
`date` TEXT default NULL,
UNIQUE (transmittal, document, version)
);
CREATE TABLE `tblRoles` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` varchar(50) default NULL,
`role` INTEGER NOT NULL default '0',
`noaccess` varchar(30) NOT NULL default '',
UNIQUE (`name`)
);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (1, 'Admin', 1);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (2, 'Guest', 2);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
UPDATE `tblUsers` SET role=3 WHERE role=0;
CREATE TABLE `new_tblUsers` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`login` varchar(50) default NULL,
`pwd` varchar(50) default NULL,
`fullName` varchar(100) default NULL,
`email` varchar(70) default NULL,
`language` varchar(32) NOT NULL,
`theme` varchar(32) NOT NULL,
`comment` text NOT NULL,
`role` INTEGER NOT NULL REFERENCES `tblRoles` (`id`),
`hidden` INTEGER NOT NULL default '0',
`pwdExpiration` TEXT default NULL,
`loginfailures` INTEGER NOT NULL default '0',
`disabled` INTEGER NOT NULL default '0',
`quota` INTEGER,
`homefolder` INTEGER default NULL REFERENCES `tblFolders` (`id`),
`secret` varchar(50) default NULL,
UNIQUE (`login`)
);
INSERT INTO new_tblUsers SELECT * FROM tblUsers;
DROP TABLE tblUsers;
ALTER TABLE new_tblUsers RENAME TO tblUsers;
CREATE TABLE `tblAros` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER,
`model` TEXT NOT NULL,
`foreignid` INTEGER NOT NULL DEFAULT '0',
`alias` TEXT
) ;
CREATE TABLE `tblAcos` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`parent` INTEGER,
`model` TEXT NOT NULL,
`foreignid` INTEGER NOT NULL DEFAULT '0',
`alias` TEXT
) ;
CREATE TABLE `tblArosAcos` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`aro` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblAros` (`id`) ON DELETE CASCADE,
`aco` INTEGER NOT NULL DEFAULT '0' REFERENCES `tblAcos` (`id`) ON DELETE CASCADE,
`create` INTEGER NOT NULL DEFAULT '-1',
`read` INTEGER NOT NULL DEFAULT '-1',
`update` INTEGER NOT NULL DEFAULT '-1',
`delete` INTEGER NOT NULL DEFAULT '-1',
UNIQUE (aco, aro)
) ;
CREATE INDEX `indDocumentStatusLogStatusID` ON `tblDocumentStatusLog` (`StatusID`);
CREATE INDEX `indDocumentApproversRequired` ON `tblDocumentApprovers` (`required`);
CREATE INDEX `indDocumentApproveLogApproveID` ON `tblDocumentApproveLog` (`approveID`);
CREATE INDEX `indDocumentReviewersRequired` ON `tblDocumentReviewers` (`required`);
CREATE INDEX `indDocumentReviewLogReviewID` ON `tblDocumentReviewLog` (`reviewID`);
CREATE TABLE `tblSchedulerTask` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` varchar(100) DEFAULT NULL,
`description` TEXT DEFAULT NULL,
`disabled` INTEGER NOT NULL DEFAULT '0',
`extension` varchar(100) DEFAULT NULL,
`task` varchar(100) DEFAULT NULL,
`frequency` varchar(100) DEFAULT NULL,
`params` TEXT DEFAULT NULL,
`nextrun` TEXT DEFAULT NULL,
`lastrun` TEXT DEFAULT NULL
) ;
UPDATE tblVersion set major=6, minor=0, subminor=0;
COMMIT;

View File

@ -0,0 +1,200 @@
START TRANSACTION;
ALTER TABLE `tblDocumentContent` ADD COLUMN `revisiondate` datetime DEFAULT NULL;
ALTER TABLE `tblUsers` ADD COLUMN `secret` varchar(50) DEFAULT NULL AFTER `pwd`;
ALTER TABLE `tblWorkflows` ADD COLUMN `layoutdata` text DEFAULT NULL AFTER `initstate`;
ALTER TABLE `tblWorkflowDocumentContent` ADD COLUMN `id` int(11) NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (`id`);
ALTER TABLE `tblWorkflowLog` ADD COLUMN `workflowdocumentcontent` int(11) NOT NULL DEFAULT '0' AFTER `id`;
UPDATE `tblWorkflowLog` a, `tblWorkflowDocumentContent` b SET a.`workflowdocumentcontent` = b.`id` WHERE a.`document` = b.`document` AND a.`version` = b.`version` AND a.`workflow` = b.`workflow`;
INSERT INTO `tblWorkflowDocumentContent` (`parentworkflow`, `workflow`, `document`, `version`, `state`, `date`) SELECT 0 AS `parentworkflow`, `workflow`, `document`, `version`, NULL AS `state`, max(`date`) AS `date` FROM `tblWorkflowLog` WHERE `workflowdocumentcontent` = 0 GROUP BY `workflow`, `document`, `version`;
UPDATE `tblWorkflowLog` a, `tblWorkflowDocumentContent` b SET a.`workflowdocumentcontent` = b.`id` WHERE a.`document` = b.`document` AND a.`version` = b.`version` AND a.`workflow` = b.`workflow`;
ALTER TABLE `tblWorkflowLog` ADD CONSTRAINT `tblWorkflowLog_workflowdocumentcontent` FOREIGN KEY (`workflowdocumentcontent`) REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE;
ALTER TABLE `tblWorkflowDocumentContent` ADD COLUMN `parent` int(11) DEFAULT NULL AFTER `id`;
ALTER TABLE `tblWorkflowDocumentContent` ADD CONSTRAINT `tblWorkflowDocumentContent_parent` FOREIGN KEY (`parent`) REFERENCES `tblWorkflowDocumentContent` (`id`) ON DELETE CASCADE;
ALTER TABLE `tblWorkflowDocumentContent` DROP COLUMN `parentworkflow`;
ALTER TABLE `tblWorkflowLog` DROP FOREIGN KEY `tblWorkflowLog_document`;
ALTER TABLE `tblWorkflowLog` DROP COLUMN `document`;
ALTER TABLE `tblWorkflowLog` DROP COLUMN `version`;
ALTER TABLE `tblWorkflowLog` DROP FOREIGN KEY `tblWorkflowLog_workflow`;
ALTER TABLE `tblWorkflowLog` DROP COLUMN `workflow`;
CREATE TABLE `tblUserSubstitutes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) DEFAULT null,
`substitute` int(11) DEFAULT null,
PRIMARY KEY (`id`),
UNIQUE (`user`, `substitute`),
CONSTRAINT `tblUserSubstitutes_user` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblUserSubstitutes_substitute` FOREIGN KEY (`user`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblDocumentCheckOuts` (
`document` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`userID` int(11) NOT NULL DEFAULT '0',
`date` datetime NOT NULL,
`filename` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`document`),
CONSTRAINT `tblDocumentCheckOuts_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentCheckOuts_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblDocumentRecipients` (
`receiptID` int(11) NOT NULL AUTO_INCREMENT,
`documentID` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`required` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`receiptID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentRecipients_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentRecipientsRequired` ON `tblDocumentRecipients` (`required`);
CREATE TABLE `tblDocumentReceiptLog` (
`receiptLogID` int(11) NOT NULL AUTO_INCREMENT,
`receiptID` int(11) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`date` datetime NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`receiptLogID`),
KEY `tblDocumentReceiptLog_receipt` (`receiptID`),
KEY `tblDocumentReceiptLog_user` (`userID`),
CONSTRAINT `tblDocumentReceiptLog_recipient` FOREIGN KEY (`receiptID`) REFERENCES `tblDocumentRecipients` (`receiptID`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentReceiptLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblDocumentRevisors` (
`revisionID` int(11) NOT NULL AUTO_INCREMENT,
`documentID` int(11) NOT NULL DEFAULT '0',
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`required` int(11) NOT NULL DEFAULT '0',
`startdate` datetime DEFAULT NULL,
PRIMARY KEY (`revisionID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
CONSTRAINT `tblDocumentRevisors_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE INDEX `indDocumentRevisorsRequired` ON `tblDocumentRevisors` (`required`);
CREATE TABLE `tblDocumentRevisionLog` (
`revisionLogID` int(11) NOT NULL AUTO_INCREMENT,
`revisionID` int(11) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`date` datetime NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`revisionLogID`),
KEY `tblDocumentRevisionLog_revision` (`revisionID`),
KEY `tblDocumentRevisionLog_user` (`userID`),
CONSTRAINT `tblDocumentRevisionLog_revision` FOREIGN KEY (`revisionID`) REFERENCES `tblDocumentRevisors` (`revisionID`) ON DELETE CASCADE,
CONSTRAINT `tblDocumentRevisionLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblTransmittals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`comment` text NOT NULL,
`userID` int(11) NOT NULL DEFAULT '0',
`date` datetime DEFAULT NULL,
`public` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
CONSTRAINT `tblTransmittals_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblTransmittalItems` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transmittal` int(11) NOT NULL DEFAULT '0',
`document` int(11) DEFAULT NULL,
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE (transmittal, document, version),
CONSTRAINT `tblTransmittalItems_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblTransmittalItem_transmittal` FOREIGN KEY (`transmittal`) REFERENCES `tblTransmittals` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblRoles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`role` smallint(1) NOT NULL DEFAULT '0',
`noaccess` varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (1, 'Admin', 1);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (2, 'Guest', 2);
INSERT INTO `tblRoles` (`id`, `name`, `role`) VALUES (3, 'User', 0);
ALTER TABLE `tblRoles` AUTO_INCREMENT=4;
ALTER TABLE tblUsers CHANGE role role int(11) NOT NULL;
UPDATE `tblUsers` SET role=3 WHERE role=0;
ALTER TABLE tblUsers ADD CONSTRAINT `tblUsers_role` FOREIGN KEY (`role`) REFERENCES `tblRoles` (`id`);
CREATE TABLE `tblAros` (
`id` int(11) NOT NULL auto_increment,
`parent` int(11),
`model` text NOT NULL,
`foreignid` int(11) NOT NULL DEFAULT '0',
`alias` varchar(255),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblAcos` (
`id` int(11) NOT NULL auto_increment,
`parent` int(11),
`model` text NOT NULL,
`foreignid` int(11) NOT NULL DEFAULT '0',
`alias` varchar(255),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblArosAcos` (
`id` int(11) NOT NULL auto_increment,
`aro` int(11) NOT NULL DEFAULT '0',
`aco` int(11) NOT NULL DEFAULT '0',
`create` tinyint(4) NOT NULL DEFAULT '-1',
`read` tinyint(4) NOT NULL DEFAULT '-1',
`update` tinyint(4) NOT NULL DEFAULT '-1',
`delete` tinyint(4) NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`),
UNIQUE (aco, aro),
CONSTRAINT `tblArosAcos_acos` FOREIGN KEY (`aco`) REFERENCES `tblAcos` (`id`) ON DELETE CASCADE,
CONSTRAINT `tblArosAcos_aros` FOREIGN KEY (`aro`) REFERENCES `tblAros` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tblSchedulerTask` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`description` text DEFAULT NULL,
`disabled` smallint(1) NOT NULL DEFAULT '0',
`extension` varchar(100) DEFAULT NULL,
`task` varchar(100) DEFAULT NULL,
`frequency` varchar(100) DEFAULT NULL,
`params` text DEFAULT NULL,
`nextrun` datetime DEFAULT NULL,
`lastrun` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
UPDATE tblVersion set major=6, minor=0, subminor=0;
COMMIT;

View File

@ -0,0 +1,52 @@
Caution when you update seeddms with workflow mode `advanced`
=============================================================
The previous database layout for tracking the workflow state of a
document content was not very well done. It did not allow to run
the document through another workflow at a later time, expecially
the same workflow, e.g. for a scheduled revision of a document.
Technical details
==================
This update modifies the tables tblWorkflowDocumentContent and
tblWorkflowLog. It adds a new autoincrement field as a primary key
(id) to tblWorkflowDocumentContent and references that field in
tblWorkflowLog (workflowdocumentcontent). Till now the two tables
where linked by the fields `document`, `version`, and `workflow` which will
be replaced by the two new fields. The fields `document`, `version`, and
`workflow` will be removed from tblWorkflowLog. tblWorkflowDocumentContent
contained just the workflows currently active for a particlar document.
From now on the table will also contain finished workflows, which
will have the field `state` set to null. This allows to run even the
same workflow again and still be able to distinguish the log entries.
MySQL
------
The update process will first add the new auto incrementing, primary
field to tblWorkflowDocumentContent and a referencing field to
tblWorkflowLog. It will then fill out the referencing field with the
automatically incremented field value from tblWorkflowDocumentContent
by joining the two tables with its common fields document, version,
and workflow. This will not fill out all referencing field values,
because once a workflow has ended the record in
tblWorkflowDocumentContent will be deleted and just the records in
tblWorkflowLog are kept. The still missing records in
tblWorkflowDocumentContent for already completed workflows will be
reconstructed from the records in tblWorkflowLog which do not have a
reference to tblWorkflowDocumentContent yet. Once that is done the
referencing field in tblWorkflowLog can be filled in a second pass.
The date of the new records in tblWorkflowDocumentContent will be
taken from the last record for that workflow in tblWorkflowLog. The
state of the new records will be set null, indicating that this
workflow is no longer active.
SQLite
-------
The update process will first create new table for tblWorkflowDocumentContent
containing a new field for the primary key field. It then copies the
records from the old table to the new table. The missing records for
workflows which has been finished already are recreated from the old
table `tblWorkflowLog`. Which is then replaced by a new table having
the foreign key to table `tblWorkflowDocumentContent`.

118
op/op.Acl.php Normal file
View File

@ -0,0 +1,118 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2012 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
require_once("../inc/inc.Settings.php");
require_once("../inc/inc.Utils.php");
require_once("../inc/inc.LogInit.php");
require_once("../inc/inc.Language.php");
require_once("../inc/inc.Init.php");
require_once("../inc/inc.Extension.php");
require_once("../inc/inc.DBInit.php");
require_once("../inc/inc.ClassUI.php");
require_once("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
if (isset($_GET["action"])) $action=$_GET["action"];
else $action=NULL;
if($action == 'add_aro') {
if (isset($_GET["roleid"])) {
if(!($role = SeedDMS_Core_Role::getInstance((int) $_GET["roleid"], $dms))) {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
} else {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
} else {
if (isset($_GET["aroid"])) {
if(!($aro = SeedDMS_Aro::getInstance((int) $_GET["aroid"], $dms))) {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
} else {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
if (isset($_GET["acoid"])) {
if(!($aco = SeedDMS_Aco::getInstance((int) $_GET["acoid"], $dms))) {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
} else {
$result = array('type'=>'error', 'msg'=>getMLText("access_denied"));
echo json_encode($result);
exit;
}
}
switch($action) {
case "toggle_permission":
$acl = new SeedDMS_Acl($dms);
if($acl->toggle($aro, $aco))
$result = array('type'=>'success', 'msg'=>getMLText('success_toogle_permission'));
else
$result = array('type'=>'error', 'msg'=>getMLText('error_toogle_permission'));
header('Content-Type: application/json');
echo json_encode($result);
break;
case "add_permission":
$acl = new SeedDMS_Acl($dms);
if($acl->add($aro, $aco))
$result = array('type'=>'success', 'msg'=>getMLText('success_add_permission'));
else
$result = array('type'=>'error', 'msg'=>getMLText('error_add_permission'));
header('Content-Type: application/json');
echo json_encode($result);
break;
case "remove_permission":
$acl = new SeedDMS_Acl($dms);
if($acl->remove($aro, $aco))
$result = array('type'=>'success', 'msg'=>getMLText('success_remove_permission'));
else
$result = array('type'=>'error', 'msg'=>getMLText('error_remove_permission'));
header('Content-Type: application/json');
echo json_encode($result);
break;
case "add_aro":
if(SeedDMS_Aro::getInstance($role, $dms)) {
$result = array('type'=>'success', 'msg'=>getMLText('success_add_aro'));
} else {
$result = array('type'=>'error', 'msg'=>getMLText('error_add_aro'));
}
header('Content-Type: application/json');
echo json_encode($result);
break;
}

View File

@ -69,8 +69,9 @@ if($settings->_quota > 0) {
}
}
if($user->isAdmin()) {
$ownerid = !empty($_POST['ownerid']) ? (int) $_POST["ownerid"] : null;
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if ($accessop->check_controller_access($controller, array('action'=>'setOwner'))) {
$ownerid = (int) $_POST["ownerid"];
if($ownerid) {
if(!($owner = $dms->getUser($ownerid))) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
@ -173,10 +174,13 @@ default:
// Get the list of reviewers and approvers for this document.
$reviewers = array();
$approvers = array();
$recipients = array();
$reviewers["i"] = array();
$reviewers["g"] = array();
$approvers["i"] = array();
$approvers["g"] = array();
$recipients["i"] = array();
$recipients["g"] = array();
$workflow = null;
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
@ -193,6 +197,16 @@ if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'tra
$reviewers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual reviewers
if (isset($_POST["grpIndReviewers"])) {
foreach ($_POST["grpIndReviewers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$reviewers["i"][] = $member->getID();
}
}
}
}
// Retrieve the list of individual approvers from the form.
@ -207,6 +221,17 @@ if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'tra
$approvers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual approvers
if (isset($_POST["grpIndApprovers"])) {
foreach ($_POST["grpIndApprovers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$approvers["i"][] = $member->getID();
}
}
}
// add mandatory reviewers/approvers
if($settings->_workflowMode == 'traditional') {
$mreviewers = getMandatoryReviewers($folder, null, $user);
@ -244,6 +269,35 @@ if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'tra
}
}
// Retrieve the list of individual recipients from the form.
$recipients["i"] = array();
if (isset($_POST["indRecipients"])) {
foreach ($_POST["indRecipients"] as $ind) {
$recipients["i"][] = $ind;
}
}
// Retrieve the list of recipient groups from the form.
$recipients["g"] = array();
if (isset($_POST["grpRecipients"])) {
foreach ($_POST["grpRecipients"] as $grp) {
$recipients["g"][] = $grp;
}
}
// Retrieve the list of recipient groups whose members become individual recipients
if (isset($_POST["grpIndRecipients"])) {
foreach ($_POST["grpIndRecipients"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
/* Do not add the uploader itself and reviewers */
if(!$settings->_enableFilterReceipt || ($member->getID() != $user->getID() && !in_array($member->getID(), $reviewers['i'])))
if(!in_array($member->getID(), $recipients["i"]))
$recipients["i"][] = $member->getID();
}
}
}
}
function reArrayFiles(&$file_post) {
$file_ary = array();
$file_count = count($file_post['name']);
@ -306,6 +360,31 @@ if(isset($_POST[$prefix.'-fine-uploader-uuids']) && $_POST[$prefix.'-fine-upload
}
}
if($settings->_libraryFolder) {
if(isset($_POST["librarydoc"]) && $_POST["librarydoc"]) {
if($clonedoc = $dms->getDocument($_POST["librarydoc"])) {
if($content = $clonedoc->getLatestContent()) {
$docsource = 'library';
$fullfile = tempnam(sys_get_temp_dir(), '');
if(SeedDMS_Core_File::copyFile($dms->contentDir . $content->getPath(), $fullfile)) {
if($_POST["name"]!="") {
$oext = pathinfo($content->getOriginalFileName(), PATHINFO_EXTENSION);
$origfilename = getFilenameByDocname(trim($_POST['name'])).".".$oext;
} else
$origfilename = $content->getOriginalFileName();
$file_ary[] = array(
'tmp_name' => $fullfile,
'type' => $content->getMimeType(),
'name' => $origfilename,
'size' => $content->getFileSize(),
'error' => 0,
'source' => 'library',
);
}
}
}
}
}
if($controller->hasHook('getDocument')) {
$file_ary = array_merge($file_ary, $controller->callHook('getDocument', $_POST));
}
@ -393,6 +472,7 @@ foreach($file_ary as $file) {
$controller->setParam('sequence', $sequence);
$controller->setParam('reviewers', $reviewers);
$controller->setParam('approvers', $approvers);
$controller->setParam('recipients', $recipients);
$controller->setParam('reqversion', $reqversion);
$controller->setParam('versioncomment', $version_comment);
$controller->setParam('attributes', $attributes);
@ -400,6 +480,7 @@ foreach($file_ary as $file) {
$controller->setParam('workflow', $workflow);
$controller->setParam('notificationgroups', $notgroups);
$controller->setParam('notificationusers', $notusers);
$controller->setParam('initialdocumentstatus', $settings->_initialDocumentStatus);
$controller->setParam('maxsizeforfulltext', $settings->_maxSizeForFullText);
$controller->setParam('defaultaccessdocs', $settings->_defaultAccessDocs);

View File

@ -73,4 +73,5 @@ if (!$document->addDocumentLink($docid, $user->getID(), $public)){
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=links");
?>

View File

@ -0,0 +1,85 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
if(!checkFormKey('addtotransmittal')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version_num = $_POST["version"];
$version = $document->getContentByVersion($version_num);
if (!is_object($version)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (!isset($_POST["assignTo"]) || !is_numeric($_POST["assignTo"]) || intval($_POST["assignTo"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$transmittalid = $_POST["assignTo"];
$transmittal = $dms->getTransmittal($transmittalid);
if (!is_object($transmittal)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if ($transmittal->getUser()->getID() != $user->getID()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_transmittal"));
}
if($transmittal->addContent($version)) {
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_to_transmittal')));
} else {
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('splash_error_add_to_transmittal')));
}
add_log_line("?documentid=".$documentid."&version".$version_num);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

49
op/op.AddTransmittal.php Normal file
View File

@ -0,0 +1,49 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes for a trusted request */
if(!checkFormKey('addtransmittal')) {
UI::exitError(getMLText("my_documents"), getMLText("invalid_request_token"));
}
$name = $_POST["name"];
$comment = $_POST["comment"];
$transmittal = $dms->addTransmittal($name, $comment, $user);
if (!is_object($transmittal)) {
UI::exitError(getMLText("my_documents"), getMLText("error_occured"));
}
add_log_line("?name=".$name);
header("Location:../out/out.MyDocuments.php");
?>

View File

@ -53,9 +53,12 @@ if (isset($_COOKIE["mydms_session"])) {
echo json_encode(array('error'=>1));
exit;
}
if($user->isAdmin()) {
if($resArr["su"]) {
$user = $dms->getUser($resArr["su"]);
if($resArr["su"] && $su = $dms->getUser($resArr["su"])) {
if($user->isAdmin() || $user->maySwitchToUser($su)) {
$user = $su;
} else {
$session->resetSu();
}
}
$dms->setUser($user);
@ -63,6 +66,8 @@ if (isset($_COOKIE["mydms_session"])) {
$dms->checkWithinRootDir = true;
$dms->setRootFolderID($user->getHomeFolder());
}
$role = $user->getRole();
$dms->noReadForStatus = $role->getNoAccess();
include $settings->_rootDir . "languages/" . $resArr["language"] . "/lang.inc";
} else {
@ -105,11 +110,13 @@ switch($command) {
}
break; /* }}} */
/* Used for document chooser */
case 'searchdocument': /* {{{ */
if($user) {
$query = $_GET['query'];
$status = isset($_GET['status']) ? (is_array($_GET['status']) ? $_GET['status'] : array($_GET['status'])) : array();
$hits = $dms->search($query, $limit=0, $offset=0, $logicalmode='AND', $searchin=array(), $startFolder=$dms->getRootFolder(), $owner=null, $status = array(), $creationstartdate=array(), $creationenddate=array(), $modificationstartdate=array(), $modificationenddate=array(), $categories=array(), $attributes=array(), $mode=0x1, $expirationstartdate=array(), $expirationenddate=array());
$hits = $dms->search($query, $limit=0, $offset=0, $logicalmode='AND', $searchin=array(), $startFolder=$dms->getRootFolder(), $owner=null, $status, $creationstartdate=array(), $creationenddate=array(), $modificationstartdate=array(), $modificationenddate=array(), $categories=array(), $attributes=array(), $mode=0x1, $expirationstartdate=array(), $expirationenddate=array());
if($hits) {
$result = array();
foreach($hits['docs'] as $hit) {
@ -896,6 +903,7 @@ switch($command) {
$controller->setParam('workflow', $workflow);
$controller->setParam('notificationgroups', array());
$controller->setParam('notificationusers', array());
$controller->setParam('initialdocumentstatus', $settings->_initialDocumentStatus);
$controller->setParam('maxsizeforfulltext', $settings->_maxSizeForFullText);
$controller->setParam('defaultaccessdocs', $settings->_defaultAccessDocs);
@ -927,6 +935,41 @@ switch($command) {
}
break; /* }}} */
/* Deprecated, has moved to op/op.TransmittalMgr.php */
case '___removetransmittalitem': /* {{{ */
if($user) {
if(!checkFormKey('removetransmittalitem', 'GET')) {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_request_token'), 'data'=>''));
} else {
$item = SeedDMS_Core_TransmittalItem::getInstance((int) $_REQUEST['id'], $dms);
if($item) {
$transmittal = $item->getTransmittal();
if($transmittal) {
if ($transmittal->getUser()->getID() == $user->getID()) {
if($item->remove()) {
header('Content-Type: application/json');
echo json_encode(array('success'=>true, 'message'=>'', 'data'=>''));
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'Error removing transmittal item', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No access', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal item', 'data'=>''));
}
}
}
break; /* }}} */
case 'updatedocument': /* {{{ */
if($user) {
if(checkFormKey('')) {
@ -1083,6 +1126,41 @@ switch($command) {
}
break; /* }}} */
/* Deprecated, has moved to op/op.TransmittalMgr.php */
case '___updatetransmittalitem': /* {{{ */
if($user) {
if(!checkFormKey('updatetransmittalitem', 'GET')) {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_request_token'), 'data'=>''));
} else {
$item = SeedDMS_Core_TransmittalItem::getInstance((int) $_REQUEST['id'], $dms);
if($item) {
$transmittal = $item->getTransmittal();
if($transmittal) {
if ($transmittal->getUser()->getID() == $user->getID()) {
if($item->updateContent()) {
header('Content-Type: application/json');
echo json_encode(array('success'=>true, 'message'=>'', 'data'=>''));
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'Error removing transmittal item', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No access', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal item', 'data'=>''));
}
}
}
break; /* }}} */
case 'addfolder': /* {{{ */
if($user) {
if(checkFormKey('')) {

View File

@ -32,6 +32,7 @@ include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
/* Check if the form data comes from a trusted request */
if(!checkFormKey('approvedocument')) {
@ -72,11 +73,8 @@ if ($latestContent->getVersion()!=$version) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
/* Create object for checking access to certain operations */
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
// verify if document may be approved
if (!$accessop->mayApprove()){
if (!$accessop->mayApprove($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
@ -96,7 +94,7 @@ $controller->setParam('type', $_POST['approvalType']);
$controller->setParam('status', $_POST['approvalStatus']);
$controller->setParam('content', $latestContent);
$controller->setParam('file', !empty($_FILES["approvalfile"]["tmp_name"]) ? $_FILES["approvalfile"]["tmp_name"] : '');
$controller->setParam('group', !empty($_POST['approvalGroup']) ? $dms->getGroup($_POST['approvalGroup']) : null);
$controller->setParam('group', !empty($_POST['approvalGroup']) ? $dms->getGroup($_POST['approvalGroup']) : null);
if(!$controller()) {
$err = $controller->getErrorMsg();
if(is_string($err))

56
op/op.CancelCheckOut.php Normal file
View File

@ -0,0 +1,56 @@
<?php
// SeedDMS. Document Management System
// Copyright (C) 2015 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
/* Check if the form data comes from a trusted request */
if(!checkFormKey('cancelcheckout')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
$checkoutstatus = $document->checkOutStatus();
/* Check out of files which has been changed, can only be canceled if allowed in the configuration */
if($checkoutstatus == 0 && empty($settings->_enableCancelCheckout)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("operation_disallowed"));
}
if(empty($_POST['confirm'])) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("operation_disallowed"));
}
if(!$document->cancelCheckOut()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_cancel_checkout"));
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_cancel_checkout')));
add_log_line("?documentid=".$documentid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);

311
op/op.CheckInDocument.php Normal file
View File

@ -0,0 +1,311 @@
<?php
// SeedDMS. Document Management System
// Copyright (C) 2015 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Authentication.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* if post_max_size is to small, then $_POST will not be set and the content
* lenght will exceed post_max_size
*/
if(empty($_POST) && $_SERVER['CONTENT_LENGTH'] > SeedDMS_Core_File::parse_filesize(ini_get('post_max_size'))) {
UI::exitError(getMLText("folder_title", array("foldername" => '')),getMLText("uploading_postmaxsize"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('checkindocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
$folder = $document->getFolder();
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user, 'checkinDocument') < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}
if($settings->_quota > 0) {
$remain = checkQuota($user);
if ($remain < 0) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
}
}
if ($document->isLocked()) {
$lockingUser = $document->getLockingUser();
if (($lockingUser->getID() != $user->getID()) && ($document->getAccessMode($user) != M_ALL)) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("no_update_cause_locked"));
}
else $document->setLocked(false);
}
if(!$accessop->mayCheckIn($document)) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}
if(isset($_POST["comment"]))
$comment = $_POST["comment"];
else
$comment = "";
$oldexpires = $document->getExpires();
switch($_POST["presetexpdate"]) {
case "date":
$expires = makeTsFromDate($_POST["expdate"]);
// $tmp = explode('-', $_POST["expdate"]);
// $expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]);
break;
case "1w":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2]+7, $tmp[0]);
break;
case "1m":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1]+1, $tmp[2], $tmp[0]);
break;
case "1y":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+1);
break;
case "2y":
$tmp = explode('-', date('Y-m-d'));
$expires = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]+2);
break;
case "never":
default:
$expires = null;
break;
}
// Get the list of reviewers and approvers for this document.
$reviewers = array();
$approvers = array();
$recipients = array();
$reviewers["i"] = array();
$reviewers["g"] = array();
$approvers["i"] = array();
$approvers["g"] = array();
$recipients["i"] = array();
$recipients["g"] = array();
$workflow = null;
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
if($settings->_workflowMode == 'traditional') {
// Retrieve the list of individual reviewers from the form.
$reviewers["i"] = array();
if (isset($_POST["indReviewers"])) {
foreach ($_POST["indReviewers"] as $ind) {
$reviewers["i"][] = $ind;
}
}
// Retrieve the list of reviewer groups from the form.
$reviewers["g"] = array();
if (isset($_POST["grpReviewers"])) {
foreach ($_POST["grpReviewers"] as $grp) {
$reviewers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual reviewers
if (isset($_POST["grpIndReviewers"])) {
foreach ($_POST["grpIndReviewers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$reviewers["i"][] = $member->getID();
}
}
}
}
// Retrieve the list of individual approvers from the form.
$approvers["i"] = array();
if (isset($_POST["indApprovers"])) {
foreach ($_POST["indApprovers"] as $ind) {
$approvers["i"][] = $ind;
}
}
// Retrieve the list of approver groups from the form.
$approvers["g"] = array();
if (isset($_POST["grpApprovers"])) {
foreach ($_POST["grpApprovers"] as $grp) {
$approvers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual approvers
if (isset($_POST["grpIndApprovers"])) {
foreach ($_POST["grpIndApprovers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$approvers["i"][] = $member->getID();
}
}
}
// add mandatory reviewers/approvers
if($settings->_workflowMode == 'traditional') {
$mreviewers = getMandatoryReviewers($folder, $document, $user);
if($mreviewers['i'])
$reviewers['i'] = array_merge($reviewers['i'], $mreviewers['i']);
if($mreviewers['g'])
$reviewers['g'] = array_merge($reviewers['g'], $mreviewers['g']);
}
$mapprovers = getMandatoryApprovers($folder, $document, $user);
if($mapprovers['i'])
$approvers['i'] = array_merge($approvers['i'], $mapprovers['i']);
if($mapprovers['g'])
$approvers['g'] = array_merge($approvers['g'], $mapprovers['g']);
if($settings->_workflowMode == 'traditional' && !$settings->_allowReviewerOnly) {
/* Check if reviewers are send but no approvers */
if(($reviewers["i"] || $reviewers["g"]) && !$approvers["i"] && !$approvers["g"]) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_uploading_reviewer_only"));
}
}
} elseif($settings->_workflowMode == 'advanced') {
if(!$workflows = $user->getMandatoryWorkflows()) {
if(isset($_POST["workflow"]))
$workflow = $dms->getWorkflow($_POST["workflow"]);
else
$workflow = null;
} else {
/* If there is excactly 1 mandatory workflow, then set no matter what has
* been posted in 'workflow', otherwise check if the posted workflow is in the
* list of mandatory workflows. If not, then take the first one.
*/
$workflow = array_shift($workflows);
foreach($workflows as $mw)
if($mw->getID() == $_POST['workflow']) {$workflow = $mw; break;}
}
}
// Retrieve the list of individual recipients from the form.
$recipients["i"] = array();
if (isset($_POST["indRecipients"])) {
foreach ($_POST["indRecipients"] as $ind) {
$recipients["i"][] = $ind;
}
}
// Retrieve the list of recipient groups from the form.
$recipients["g"] = array();
if (isset($_POST["grpRecipients"])) {
foreach ($_POST["grpRecipients"] as $grp) {
$recipients["g"][] = $grp;
}
}
// Retrieve the list of recipient groups whose members become individual recipients
if (isset($_POST["grpIndRecipients"])) {
foreach ($_POST["grpIndRecipients"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
/* Do not add the uploader itself as recipient */
if(!$settings->_enableFilterReceipt || ($member->getID() != $user->getID() && !in_array($member->getID(), $reviewers['i'])))
if(!in_array($member->getID(), $recipients["i"]))
$recipients["i"][] = $member->getID();
}
}
}
}
if(isset($_POST["attributes_version"]) && $_POST["attributes_version"]) {
$attributes = $_POST["attributes_version"];
foreach($attributes as $attrdefid=>$attribute) {
$attrdef = $dms->getAttributeDefinition($attrdefid);
if($attribute) {
switch($attrdef->getType()) {
case SeedDMS_Core_AttributeDefinition::type_date:
$attribute = date('Y-m-d', makeTsFromDate($attribute));
break;
}
if(!$attrdef->validate($attribute, null, true)) {
$errmsg = getAttributeValidationText($attrdef->getValidationError(), $attrdef->getName(), $attribute);
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())), $errmsg);
}
} elseif($attrdef->getMinValues() > 0) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("attr_min_values", array("attrname"=>$attrdef->getName())));
}
}
} else {
$attributes = array();
}
$controller->setParam('documentsource', 'checkin');
$controller->setParam('folder', $folder);
$controller->setParam('document', $document);
$controller->setParam('fulltextservice', $fulltextservice);
$controller->setParam('comment', $comment);
if($oldexpires != $expires)
$controller->setParam('expires', $expires);
$controller->setParam('reviewers', $reviewers);
$controller->setParam('approvers', $approvers);
$controller->setParam('recipients', $recipients);
$controller->setParam('attributes', $attributes);
$controller->setParam('workflow', $workflow);
$controller->setParam('initialdocumentstatus', $settings->_initialDocumentStatus);
$controller->setParam('maxsizeforfulltext', $settings->_maxSizeForFullText);
if(!$content = $controller()) {
$err = $controller->getErrorMsg();
if(is_string($err))
$errmsg = getMLText($err);
elseif(is_array($err)) {
$errmsg = getMLText($err[0], $err[1]);
} else {
$errmsg = $err;
}
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())), $errmsg);
} else {
if($controller->hasHook('cleanUpDocument')) {
$controller->callHook('cleanUpDocument', $document, $file);
}
// Send notification to subscribers.
if($notifier) {
$notifier->sendNewDocumentVersionMail($document, $user);
$notifier->sendChangedExpiryMail($document, $user, $oldexpires);
}
}
add_log_line("checkin document ".$documentid." with version ".$content->getVersion());
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);

View File

@ -0,0 +1,79 @@
<?php
// SeedDMS. Document Management System
// Copyright (C) 2015 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if(!$settings->_checkOutDir) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("checkout_is_disabled"));
}
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if ($document->isLocked()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("document_already_locked"));
}
if ($document->isCheckedOut()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("document_already_checkedout"));
}
if($session->getSu()) {
$origuser = $dms->getUser($session->getUser());
$checkoutpath = sprintf($settings->_checkOutDir.'/', preg_replace('/[^A-Za-z0-9_-]/', '', $origuser->getLogin()));
} else {
$checkoutpath = sprintf($settings->_checkOutDir.'/', preg_replace('/[^A-Za-z0-9_-]/', '', $user->getLogin()));
}
if(!file_exists($checkoutpath) && $settings->_createCheckOutDir) {
SeedDMS_Core_File::makeDir($checkoutpath);
}
if(!file_exists($checkoutpath)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("checkoutpath_does_not_exist"));
}
if (!$document->checkOut($user, $checkoutpath)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_document_checkedout')));
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

60
op/op.Cron.php Normal file
View File

@ -0,0 +1,60 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2016 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
require_once("../inc/inc.Settings.php");
require_once("../inc/inc.Utils.php");
require_once("../inc/inc.LogInit.php");
require_once("../inc/inc.Language.php");
require_once("../inc/inc.Init.php");
require_once("../inc/inc.Extension.php");
require_once("../inc/inc.DBInit.php");
require_once("../inc/inc.ClassController.php");
require_once("../inc/inc.Scheduler.php");
require_once("../inc/inc.BasicAuthentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
if($user->getLogin() != 'cli_scheduler') {
header('WWW-Authenticate: Basic realm="'.$settings->_siteName.'"');
header('HTTP/1.0 401 Unauthorized');
echo "Wrong user";
exit;
}
$mode = 'list';
if(!empty($_GET['mode']) && in_array($_GET['mode'], array('list', 'run', 'dryrun', 'check')))
$mode = $_GET['mode'];
$task = '';
if(!empty($_GET['task']))
$task = $_GET['task'];
$controller->setParam('settings', $settings);
$controller->setParam('logger', $logger);
$controller->setParam('mode', $mode);
$controller->setParam('task', $task);
if(!$controller->run()) {
echo getMLText("error_occured");
exit;
}
add_log_line();
exit();

View File

@ -32,6 +32,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => "")),getMLText("access_denied"));
}
if (isset($_GET["version"])) { /* {{{ */
@ -98,19 +102,9 @@ elseif (isset($_GET["file"])) { /* {{{ */
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_file_id"));
}
if(!file_exists($dms->contentDir . $file->getPath())) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("missing_file"));
}
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($dms->contentDir . $file->getPath() ));
$efilename = rawurlencode($file->getOriginalFileName());
header("Content-Disposition: attachment; filename=\"" . $efilename . "\"; filename*=UTF-8''".$efilename);
header("Content-Type: " . $file->getMimeType());
header("Cache-Control: must-revalidate");
sendFile($dms->contentDir . $file->getPath());
$controller->setParam('file', $file);
$controller->setParam('type', 'file');
$controller->run();
} /* }}} */
elseif (isset($_GET["arkname"])) { /* {{{ */
$filename = basename($_GET["arkname"]);
@ -130,16 +124,9 @@ elseif (isset($_GET["arkname"])) { /* {{{ */
UI::exitError(getMLText("admin_tools"),getMLText("missing_file"));
}
header('Content-Description: File Transfer');
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($backupdir . $filename ));
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: must-revalidate");
sendFile($backupdir .$filename );
$controller->setParam('basedir', $backupdir);
$controller->setParam('file', $filename);
$controller->archive();
} /* }}} */
elseif (isset($_GET["logname"])) { /* {{{ */
$filename = basename($_GET["logname"], '.log').'.log';
@ -158,15 +145,10 @@ elseif (isset($_GET["logname"])) { /* {{{ */
UI::exitError(getMLText("admin_tools"),getMLText("missing_file"));
}
header("Content-Type: text/plain");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir.'log/' . $filename ));
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: must-revalidate");
$controller->setParam('file', $filename);
$controller->setParam('basedir', $settings->_contentDir . 'log/');
$controller->log();
sendFile($settings->_contentDir . 'log/' . $filename );
} /* }}} */
elseif (isset($_GET["vfile"])) { /* {{{ */
@ -215,14 +197,9 @@ elseif (isset($_GET["dumpname"])) { /* {{{ */
UI::exitError(getMLText("admin_tools"),getMLText("missing_file"));
}
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($backupdir . $filename ));
$efilename = rawurlencode($filename);
header("Content-Disposition: attachment; filename=\"" .$efilename . "\"; filename*=UTF-8''".$efilename);
header("Cache-Control: must-revalidate");
sendFile($backupdir .$filename );
$controller->setParam('basedir', $backupdir);
$controller->setParam('file', $filename);
$controller->sqldump();
} /* }}} */
elseif (isset($_GET["reviewlogid"])) { /* {{{ */
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
@ -243,22 +220,15 @@ elseif (isset($_GET["reviewlogid"])) { /* {{{ */
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}
$filename = $dms->contentDir . $document->getDir().'r'.(int) $_GET['reviewlogid'];
if (!file_exists($filename) ) {
$controller->setParam('document', $document);
$controller->setParam('reviewlogid', (int) $_GET['reviewlogid']);
$controller->setParam('type', 'review');
$controller->run();
switch($controller->getErrorNo()) {
case 1:
UI::exitError(getMLText("admin_tools"),getMLText("missing_file"));
break;
}
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mimetype = finfo_file($finfo, $filename);
header("Content-Type: ".$mimetype);
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($filename ));
header("Content-Disposition: attachment; filename=\"review-" . $document->getID()."-".(int) $_GET['reviewlogid'] . get_extension($mimetype) . "\"");
header("Cache-Control: must-revalidate");
sendFile($filename);
} /* }}} */
elseif (isset($_GET["approvelogid"])) { /* {{{ */
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
@ -279,21 +249,15 @@ elseif (isset($_GET["approvelogid"])) { /* {{{ */
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}
$filename = $dms->contentDir . $document->getDir().'a'.(int) $_GET['approvelogid'];
if (!file_exists($filename) ) {
$controller->setParam('document', $document);
$controller->setParam('approvelogid', (int) $_GET['approvelogid']);
$controller->setParam('type', 'approval');
$controller->run();
switch($controller->getErrorNo()) {
case 1:
UI::exitError(getMLText("admin_tools"),getMLText("missing_file"));
break;
}
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mimetype = finfo_file($finfo, $filename);
header("Content-Type: ".$mimetype);
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($filename ));
header("Content-Disposition: attachment; filename=\"approval-" . $document->getID()."-".(int) $_GET['approvelogid'] . get_extension($mimetype) . "\"");
header("Cache-Control: must-revalidate");
sendFile($filename);
} /* }}} */
add_log_line();

View File

@ -34,6 +34,11 @@ if(!checkFormKey('editattributes')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('EditAttributes', $_POST)) {
UI::exitError(getMLText("folder_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}

View File

@ -34,6 +34,11 @@ if(!checkFormKey('editcomment')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('EditComment', $_POST)) {
UI::exitError(getMLText("folder_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}

View File

@ -31,6 +31,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editdocument')) {

View File

@ -32,6 +32,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editdocumentfile')) {

View File

@ -31,6 +31,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('editfolder')) {

View File

@ -28,28 +28,38 @@ include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('EditOnline', $_POST)) {
echo json_encode(array('success'=>false, 'message'=>getMLText('access_denied')));
exit;
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_doc_id')));
exit;
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_doc_id')));
exit;
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user, 'editOnline') < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
echo json_encode(array('success'=>false, 'message'=>getMLText('access_denied')));
exit;
}
if($document->isLocked()) {
$lockingUser = $document->getLockingUser();
if (($lockingUser->getID() != $user->getID()) && ($document->getAccessMode($user, 'editOnline') != M_ALL)) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("lock_message", array("email" => $lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName()))));
echo json_encode(array('success'=>false, 'message'=>getMLText("lock_message", array("email" => $lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName())))));
exit;
}
}

View File

@ -125,26 +125,21 @@ function renderGroupData($colname, $objdata) { /* {{{ */
} /* }}} */
function getRoleData($colname, $coldata, $objdata) { /* {{{ */
switch($coldata) {
case 'admin':
$role = 1;
break;
case 'guest':
$role = 2;
break;
case 'user':
$role = 0;
break;
default:
$role = 0;
global $dms;
if($role = $dms->getRoleByName($coldata)) {
$objdata['role'] = $role;
} else {
$objdata['role'] = null;
$objdata['__logs__'][] = array('type'=>'error', 'msg'=> "No such role with name '".$coldata."'");
}
$objdata['role'] = $role;
return $objdata;
} /* }}} */
function renderRoleData($colname, $objdata) { /* {{{ */
return ($objdata[$colname] == 1 ? 'admin' : ($objdata[$colname] == 2 ? 'guest' : 'user'));
$html = '';
if($objdata[$colname])
$html .= $objdata[$colname]->getName();
return $html;
} /* }}} */
if (!$user->isAdmin()) {
@ -318,7 +313,7 @@ if (isset($_FILES['userdata']) && $_FILES['userdata']['error'] == 0) {
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if($view) {
$view->setParam('log', $log);
$view->setParam('newusers', $newusers);

View File

@ -29,6 +29,11 @@ require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('LockDocument', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('lockdocument', 'GET')) {
UI::exitError(getMLText("document_title"), getMLText("invalid_request_token"));
@ -45,6 +50,11 @@ if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('LockDocument', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";

View File

@ -33,6 +33,11 @@ if(!checkFormKey('movedocument', 'GET')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('MoveDocument', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}

View File

@ -33,6 +33,11 @@ if(!checkFormKey('movefolder', 'GET')) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('MoveFolder', $_POST)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("access_denied"));
}
if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}

View File

@ -28,6 +28,13 @@ include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
//$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if(!$accessop->check_controller_access($tmp[1] /*$controller*/)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('overridecontentstatus')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
@ -58,7 +65,7 @@ if (!is_object($content)) {
}
if (!isset($_POST["overrideStatus"]) || !is_numeric($_POST["overrideStatus"]) ||
(intval($_POST["overrideStatus"])<-3 && intval($_POST["overrideStatus"])>2)) {
(intval($_POST["overrideStatus"]) != S_RELEASED && intval($_POST["overrideStatus"]) != S_OBSOLETE && intval($_POST["overrideStatus"]) != S_DRAFT && intval($_POST["overrideStatus"]) != S_NEEDS_CORRECTION)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_status"));
}

105
op/op.ReceiptDocument.php Normal file
View File

@ -0,0 +1,105 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Authentication.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
/* Check if the form data comes for a trusted request */
if(!checkFormKey('receiptdocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
// verify if document may be receіpted
if (!$accessop->mayReceipt($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$folder = $document->getFolder();
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
// operation is only allowed for the last document version
$latestContent = $document->getLatestContent();
if ($latestContent->getVersion()!=$version) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (!isset($_POST["receiptStatus"]) || !is_numeric($_POST["receiptStatus"]) ||
(intval($_POST["receiptStatus"])!=1 && intval($_POST["receiptStatus"])!=-1)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_receipt_status"));
}
$controller->setParam('document', $document);
$controller->setParam('content', $latestContent);
$controller->setParam('receiptstatus', $_POST["receiptStatus"]);
$controller->setParam('receipttype', $_POST["receiptType"]);
if ($_POST["receiptType"] == "grp") {
$group = $dms->getGroup($_POST['receiptGroup']);
} else {
$group = null;
}
$controller->setParam('group', $group);
$controller->setParam('comment', $_POST["comment"]);
if(!$controller->run()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText($controller->getErrorMsg()));
}
if ($_POST["receiptType"] == "ind" || $_POST["receiptType"] == "grp") {
if($notifier) {
$receiptlog = $latestContent->getReceiptLog();
$notifier->sendSubmittedReceiptMail($latestContent, $user, $receiptlog ? $receiptlog[0] : false);
}
}
add_log_line("documentid=".$documentid."&version=".$version);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=recipients");

View File

@ -31,6 +31,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedocument')) {

View File

@ -27,6 +27,11 @@ include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('RemoveDocumentFile', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removedocumentfile')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));

View File

@ -44,10 +44,10 @@ if (!is_object($document)) {
}
/* Create object for checking access to certain operations */
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
// verify if document may be reviewed
if (!$accessop->mayRemoveVersion()){
if (!$accessop->mayRemoveVersion($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}

View File

@ -32,6 +32,7 @@ include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
/* Check if the form data comes from a trusted request */
if(!checkFormKey('reviewdocument')) {
@ -72,11 +73,8 @@ if ($latestContent->getVersion()!=$version) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
/* Create object for checking access to certain operations */
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
// verify if document may be reviewed
if (!$accessop->mayReview()){
if (!$accessop->mayReview($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}

120
op/op.ReviseDocument.php Normal file
View File

@ -0,0 +1,120 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Authentication.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
/* Check if the form data comes for a trusted request */
if(!checkFormKey('revisedocument')) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_request_token"))),getMLText("invalid_request_token"));
}
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
// verify if document maybe revised
if (!$accessop->mayRevise($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$folder = $document->getFolder();
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
// operation is only allowed for the last document version
$latestContent = $document->getLatestContent();
if ($latestContent->getVersion()!=$version) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$olddocstatus = $content->getStatus();
if (!isset($_POST["revisionStatus"]) || !is_numeric($_POST["revisionStatus"]) ||
(!in_array(intval($_POST["revisionStatus"]), array(1, -1, 6)))) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_revision_status"));
}
$controller->setParam('document', $document);
$controller->setParam('content', $content);
$controller->setParam('revisionstatus', $_POST["revisionStatus"]);
$controller->setParam('revisiontype', $_POST["revisionType"]);
if ($_POST["revisionType"] == "grp") {
$group = $dms->getGroup($_POST['revisionGroup']);
} else {
$group = null;
}
$controller->setParam('group', $group);
$controller->setParam('comment', $_POST["comment"]);
$controller->setParam('onevotereject', $settings->_enableRevisionOneVoteReject);
if(!$controller->run()) {
$err = $controller->getErrorMsg();
if(is_string($err))
$errmsg = getMLText($err);
elseif(is_array($err)) {
$errmsg = getMLText($err[0], $err[1]);
} else {
$errmsg = $err;
}
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText($errmsg));
}
if($notifier) {
if ($_POST["revisionType"] == "ind" || $_POST["revisionType"] == "grp") {
$revisionlog = $latestContent->getRevisionLog();
$notifier->sendSubmittedRevisionMail($latestContent, $user, $revisionlog ? $revisionlog[0] : false);
}
/* Send notification about status change only if status has actually changed */
if($controller->oldstatus != $controller->newstatus)
$notifier->sendChangedDocumentStatusMail($latestContent, $user, $controller->oldstatus);
}
add_log_line("documentid=".$documentid."&version=".$version);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=revision");

133
op/op.RoleMgr.php Normal file
View File

@ -0,0 +1,133 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2012 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (isset($_POST["action"])) $action=$_POST["action"];
else $action=NULL;
if(!in_array($action, array('addrole', 'removerole', 'editrole')))
UI::exitError(getMLText("admin_tools"),getMLText("unknown_command"));
/* Check if the form data comes for a trusted request */
if(!checkFormKey($action)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
$roleid = 0;
if(in_array($action, array('removerole', 'editrole'))) {
if (isset($_POST["roleid"])) {
$roleid = $_POST["roleid"];
}
if (!isset($roleid) || !is_numeric($roleid) || intval($roleid)<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_role_id"));
}
$roleobj = $dms->getRole($roleid);
if (!is_object($roleobj)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_role_id"));
}
$controller->setParam('roleobj', $roleobj);
}
// add new role ---------------------------------------------------------
if ($action == "addrole") {
$name = $_POST["name"];
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
if (is_object($dms->getRoleByName($name))) {
UI::exitError(getMLText("admin_tools"),getMLText("role_exists"));
}
if ($role === '') {
UI::exitError(getMLText("admin_tools"),getMLText("missing_role_type"));
}
$controller->setParam('name', $name);
$controller->setParam('role', $role);
$newRole = $controller($_POST);
if ($newRole) {
}
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
$roleid=$newRole->getID();
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_role')));
add_log_line(".php&action=".$action."&name=".$name);
}
// delete role ------------------------------------------------------------
else if ($action == "removerole") {
if (!$controller($_POST)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line(".php&action=".$action."&roleid=".$roleid);
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_role')));
$roleid=-1;
}
// modify role ------------------------------------------------------------
else if ($action == "editrole") {
$name = $_POST["name"];
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
$noaccess = isset($_POST['noaccess']) ? $_POST['noaccess'] : null;
$controller->setParam('name', $name);
$controller->setParam('role', $role);
$controller->setParam('noaccess', $noaccess);
if (!$controller($_POST)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_role')));
add_log_line(".php&action=".$action."&roleid=".$roleid);
}
header("Location:../out/out.RoleMgr.php?roleid=".$roleid);
?>

144
op/op.SchedulerTaskMgr.php Normal file
View File

@ -0,0 +1,144 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2012 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Scheduler.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if ($user->isGuest()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (isset($_POST["action"])) $action=$_POST["action"];
else $action=NULL;
$scheduler = new SeedDMS_Scheduler($dms->getDB());
// add new task ---------------------------------------------------
if ($action == "addtask") { /* {{{ */
/* Check if the form data comes for a trusted request */
if(!checkFormKey('addtask')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
$extension = $_POST["extension"];
$task = $_POST["task"];
$name = $_POST["name"];
$description = $_POST["description"];
$frequency = $_POST["frequency"];
$disabled = isset($_POST["disabled"]) ? $_POST["disabled"] : 0;
$params = isset($_POST["params"]) ? $_POST["params"] : null;
$newtask = $scheduler->addTask($extension, $task, $name, $description, $frequency, $disabled, $params);
if ($newtask) {
}
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
$taskid=$newtask->getID();
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_task')));
add_log_line(".php&action=addtask&name=".$name);
} /* }}} */
// modify task ----------------------------------------------------
else if ($action == "edittask") { /* {{{ */
/* Check if the form data comes for a trusted request */
if(!checkFormKey('edittask')) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_request_token"));
}
if (!isset($_POST["taskid"]) || !is_numeric($_POST["taskid"]) || intval($_POST["taskid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_task"));
}
$taskid=$_POST["taskid"];
$editedtask = $scheduler->getTask($taskid);
if (!is_object($editedtask)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_task"));
}
$name = $_POST["name"];
$description = $_POST["description"];
$frequency = $_POST["frequency"];
$disabled = isset($_POST["disabled"]) ? $_POST["disabled"] : 0;
$params = isset($_POST["params"]) ? $_POST["params"] : null;
if ($editedtask->getName() != $name)
$editedtask->setName($name);
if ($editedtask->getDescription() != $description)
$editedtask->setDescription($description);
$editedtask->setDisabled($disabled);
$editedtask->setParameter($params);
if($editedtask->setFrequency($frequency))
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_task')));
else
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_edit_task')));
add_log_line(".php&action=edittask&taskid=".$taskid);
} /* }}} */
// delete task -------------------------------------------------------------
else if ($action == "removetask") { /* {{{ */
header('Content-Type: application/json');
/* Check if the form data comes from a trusted request */
if(!checkFormKey('removetask')) {
echo json_encode(array('success'=>false, 'message'=>getMLText("invalid_request_token")));
exit;
}
if (!isset($_POST["taskid"]) || !is_numeric($_POST["taskid"]) || intval($_POST["taskid"])<1) {
echo json_encode(array('success'=>false, 'message'=>getMLText("invalid_task")));
exit;
}
$taskid=$_POST["taskid"];
$task = $scheduler->getTask($taskid);
if (!is_object($task)) {
echo json_encode(array('success'=>false, 'message'=>getMLText("invalid_task")));
exit;
}
if (!$task->remove()) {
echo json_encode(array('success'=>false, 'message'=>getMLText("error_occured")));
exit;
}
add_log_line("?taskid=".$_POST["taskid"]."&action=removetask");
echo json_encode(array('success'=>true, 'message'=>getMLText("task_removed")));
exit;
} /* }}} */
header("Location:../out/out.SchedulerTaskMgr.php");

View File

@ -31,7 +31,7 @@ include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_GET)) {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>getMLText('access_denied')));

279
op/op.SetRecipients.php Normal file
View File

@ -0,0 +1,279 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2015 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$folder = $document->getFolder();
// Retrieve a list of all users and groups that have read rights.
// Afterwards, reorganize them in two arrays with its key being the
// userid or groupid
$docAccess = $document->getReadAccessList($settings->_enableAdminReceipt, $settings->_enableOwnerReceipt);
$accessIndex = array("i"=>array(), "g"=>array());
foreach ($docAccess["users"] as $i=>$da) {
$accessIndex["i"][$da->getID()] = $da;
}
foreach ($docAccess["groups"] as $i=>$da) {
$accessIndex["g"][$da->getID()] = $da;
}
// Retrieve list of currently assigned recipients, along with
// their latest status.
$receiptStatus = $content->getReceiptStatus();
// Index the receipt results for easy cross-reference with the Approvers List.
$receiptIndex = array("i"=>array(), "g"=>array());
foreach ($receiptStatus as $i=>$rs) {
if ($rs["status"]!=S_LOG_USER_REMOVED) {
if ($rs["type"]==0) {
$receiptIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
else if ($rs["type"]==1) {
$receiptIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
}
}
/* Get List of ind. reviewers, because they are taken out from the receivers
* if added as group.
*/
$reviewStatus = $content->getReviewStatus();
$reviewerids = [];
foreach ($reviewStatus as $r) {
if($r["type"] == 0 && $r["status"] > -2) {
$reviewerids[] = $r['required'];
}
}
// Get the list of proposed recipients, stripping out any duplicates.
$pIndRev = (isset($_POST["indRecipients"]) ? array_values(array_unique($_POST["indRecipients"])) : array());
// Retrieve the list of recipient groups whose members become individual recipients
if (isset($_POST["grpIndRecipients"])) {
foreach ($_POST["grpIndRecipients"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
/* Do not add the uploader itself and reviewers */
if(!$settings->_enableFilterReceipt || ($member->getID() != $content->getUser()->getID() && !in_array($member->getID(), $reviewerids)))
if(!in_array($member->getID(), $pIndRev))
$pIndRev[] = $member->getID();
}
}
}
}
$pGrpRev = (isset($_POST["grpRecipients"]) ? array_values(array_unique($_POST["grpRecipients"])) : array());
foreach ($pIndRev as $p) {
if (is_numeric($p)) {
if (isset($accessIndex["i"][$p])) {
// Proposed recipient is on the list of possible recipients.
if (!isset($receiptIndex["i"][$p])) {
// Proposed recipient is not a current recipient, so add as a new
// recipient.
$res = $content->addIndRecipient($accessIndex["i"][$p], $user);
$unm = $accessIndex["i"][$p]->getFullName();
$uml = $accessIndex["i"][$p]->getEmail();
switch ($res) {
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_assigned"));
break;
case -4:
// email error
break;
default:
// Send an email notification to the new recipient.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendAddReceiptMail($content, $user, $accessIndex["i"][$p]);
}
}
break;
}
}
else {
// Proposed recipient is already in the list of recipients.
// Remove recipient from the index of possible recipients. If there are
// any recipients left over in the list of possible recipients, they
// will be removed from the receipt process for this document revision.
unset($receiptIndex["i"][$p]);
}
}
}
}
if (count($receiptIndex["i"]) > 0) {
foreach ($receiptIndex["i"] as $rx=>$rv) {
if ($rv["status"] == 0) {
// User is to be removed from the recipients list.
if (!isset($accessIndex["i"][$rx])) {
// User does not have any receipt privileges for this document
// revision or does not exist.
$res = $content->delIndRecipient($dms->getUser($rx), $user, getMLText("removed_recipient"));
}
else {
$res = $content->delIndRecipient($accessIndex["i"][$rx], $user);
$unm = $accessIndex["i"][$rx]->getFullName();
$uml = $accessIndex["i"][$rx]->getEmail();
switch ($res) {
case 0:
// Send an email notification to the recipients.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendDeleteReceiptMail($content, $user, $accessIndex["i"][$rx]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
break;
case -4:
// email error
break;
}
}
}
}
}
foreach ($pGrpRev as $p) {
if (is_numeric($p)) {
if (isset($accessIndex["g"][$p])) {
// Proposed recipient is on the list of possible recipients.
if (!isset($receiptIndex["g"][$p])) {
// Proposed recipient is not a current recipient, so add as a new
// recipient.
$res = $content->addGrpRecipient($accessIndex["g"][$p], $user);
$gnm = $accessIndex["g"][$p]->getName();
switch ($res) {
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_assigned"));
break;
case -4:
// email error
break;
default:
// Send an email notification to the new recipient.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendAddReceiptMail($content, $user, $accessIndex["g"][$p]);
}
}
break;
}
}
else {
// Remove recipient from the index of possible recipients.
unset($receiptIndex["g"][$p]);
}
}
}
}
if (count($receiptIndex["g"]) > 0) {
foreach ($receiptIndex["g"] as $rx=>$rv) {
if ($rv["status"] == 0) {
// Group is to be removed from the recipientist.
if (!isset($accessIndex["g"][$rx])) {
// Group does not have any receipt privileges for this document
// revision or does not exist.
$res = $content->delGrpRecipient($dms->getGroup($rx), $user, getMLText("removed_recipient"));
}
else {
$res = $content->delGrpRecipient($accessIndex["g"][$rx], $user);
$gnm = $accessIndex["g"][$rx]->getName();
switch ($res) {
case 0:
// Send an email notification to the recipients group.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendDeleteReceiptMail($content, $user, $accessIndex["g"][$rx]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
break;
case -4:
// email error
break;
}
}
}
}
}
add_log_line("?documentid=".$documentid);
header("Location:../out/out.DocumentVersionDetail.php?documentid=".$documentid."&version=".$version);
?>

View File

@ -82,7 +82,7 @@ $approvalStatus = $content->getApprovalStatus();
// Index the review results for easy cross-reference with the reviewers List.
$reviewIndex = array("i"=>array(), "g"=>array());
foreach ($reviewStatus as $i=>$rs) {
if ($rs["status"]!=-2) {
if ($rs["status"]!=S_LOG_USER_REMOVED) {
if ($rs["type"]==0) {
$reviewIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
@ -94,7 +94,7 @@ foreach ($reviewStatus as $i=>$rs) {
// Index the approval results for easy cross-reference with the approvers List.
$approvalIndex = array("i"=>array(), "g"=>array());
foreach ($approvalStatus as $i=>$rs) {
if ($rs["status"]!=-2) {
if ($rs["status"]!=S_LOG_USER_REMOVED) {
if ($rs["type"]==0) {
$approvalIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
@ -106,6 +106,18 @@ foreach ($approvalStatus as $i=>$rs) {
// Get the list of proposed reviewers, stripping out any duplicates.
$pIndRev = (isset($_POST["indReviewers"]) ? array_values(array_unique($_POST["indReviewers"])) : array());
// Retrieve the list of reviewer groups whose members become individual reviewers
if (isset($_POST["grpIndReviewers"])) {
foreach ($_POST["grpIndReviewers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
if(!in_array($member->getID(), $pIndRev))
$pIndRev[] = $member->getID();
}
}
}
}
$pGrpRev = (isset($_POST["grpReviewers"]) ? array_values(array_unique($_POST["grpReviewers"])) : array());
if($user->getID() != $owner->getID()) {
$res=$owner->getMandatoryReviewers();
@ -282,6 +294,18 @@ if (count($reviewIndex["g"]) > 0) {
// Get the list of proposed approvers, stripping out any duplicates.
$pIndApp = (isset($_POST["indApprovers"]) ? array_values(array_unique($_POST["indApprovers"])) : array());
// Retrieve the list of approver groups whose members become individual reviewers
if (isset($_POST["grpIndApprovers"])) {
foreach ($_POST["grpIndApprovers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
if(!in_array($member->getID(), $pIndApp))
$pIndApp[] = $member->getID();
}
}
}
}
$pGrpApp = (isset($_POST["grpApprovers"]) ? array_values(array_unique($_POST["grpApprovers"])) : array());
if($user->getID() != $owner->getID()) {
$res=$owner->getMandatoryApprovers();
@ -458,7 +482,7 @@ if (count($approvalIndex["g"]) > 0) {
$content->verifyStatus(false,$user);
$content->verifyStatus(false, $user, '', $settings->_initialDocumentStatus);
add_log_line("?documentid=".$documentid);
header("Location:../out/out.DocumentVersionDetail.php?documentid=".$documentid."&version=".$version);

286
op/op.SetRevisors.php Normal file
View File

@ -0,0 +1,286 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2015 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = $dms->getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (isset($_POST["startdate"])) {
$ts = makeTsFromDate($_POST["startdate"]);
} else {
$ts = time();
}
$startdate = date('Y-m-d', $ts);
if(!$content->setRevisionDate($startdate)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
$folder = $document->getFolder();
// Retrieve a list of all users and groups that have read rights.
// Afterwards, reorganize them in two arrays with its key being the
// userid or groupid
$docAccess = $document->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
$accessIndex = array("i"=>array(), "g"=>array());
foreach ($docAccess["users"] as $i=>$da) {
$accessIndex["i"][$da->getID()] = $da;
}
foreach ($docAccess["groups"] as $i=>$da) {
$accessIndex["g"][$da->getID()] = $da;
}
// Retrieve list of currently assigned recipients, along with
// their latest status.
$revisionStatus = $content->getRevisionStatus();
// Index the revision results for easy cross-reference with the Approvers List.
$revisionIndex = array("i"=>array(), "g"=>array());
foreach ($revisionStatus as $i=>$rs) {
if ($rs["status"]!=S_LOG_USER_REMOVED) {
if ($rs["type"]==0) {
$revisionIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
else if ($rs["type"]==1) {
$revisionIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i);
}
}
}
// Get the list of proposed revisors, stripping out any duplicates.
$pIndRev = (isset($_POST["indRevisors"]) ? array_values(array_unique($_POST["indRevisors"])) : array());
// Retrieve the list of revisor groups whose members become individual revisors
if (isset($_POST["grpIndRevisors"])) {
foreach ($_POST["grpIndRevisors"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
if(!in_array($member->getID(), $pIndRev))
$pIndRev[] = $member->getID();
}
}
}
}
$pGrpRev = (isset($_POST["grpRevisors"]) ? array_values(array_unique($_POST["grpRevisors"])) : array());
foreach ($pIndRev as $p) {
if (is_numeric($p)) {
if (isset($accessIndex["i"][$p])) {
// Proposed recipient is on the list of possible recipients.
if (!isset($revisionIndex["i"][$p])) {
// Proposed recipient is not a current recipient, so add as a new
// recipient.
$res = $content->addIndRevisor($accessIndex["i"][$p], $user);
$unm = $accessIndex["i"][$p]->getFullName();
$uml = $accessIndex["i"][$p]->getEmail();
switch ($res) {
case 0:
// Send an email notification to the new recipient.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendAddRevisionMail($content, $user, $accessIndex["i"][$p]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("revisor_already_assigned"));
break;
case -4:
// email error
break;
}
}
else {
// Proposed recipient is already in the list of recipients.
// Remove revisor from the index of possible revisors. If there are
// any revisors left over in the list of possible revisors, they
// will be removed from the revision process for this document revision.
unset($revisionIndex["i"][$p]);
}
}
}
}
if (count($revisionIndex["i"]) > 0) {
foreach ($revisionIndex["i"] as $rx=>$rv) {
// if ($rv["status"] == 0) {
// User is to be removed from the recipients list.
if (!isset($accessIndex["i"][$rx])) {
// User does not have any revision privileges for this document
// revision or does not exist.
$res = $content->delIndRevisor($dms->getUser($rx), $user, getMLText("removed_revisor"));
}
else {
$res = $content->delIndRevisor($accessIndex["i"][$rx], $user);
$unm = $accessIndex["i"][$rx]->getFullName();
$uml = $accessIndex["i"][$rx]->getEmail();
switch ($res) {
case 0:
// Send an email notification to the recipients.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendDeleteRevisionMail($content, $user, $accessIndex["i"][$rx]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
break;
case -4:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_was_active"));
break;
}
}
// }
}
}
foreach ($pGrpRev as $p) {
if (is_numeric($p)) {
if (isset($accessIndex["g"][$p])) {
// Proposed recipient is on the list of possible recipients.
if (!isset($revisionIndex["g"][$p])) {
// Proposed recipient is not a current recipient, so add as a new
// recipient.
$res = $content->addGrpRevisor($accessIndex["g"][$p], $user);
$gnm = $accessIndex["g"][$p]->getName();
switch ($res) {
case 0:
// Send an email notification to the new recipient.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendAddRevisionMail($content, $user, $accessIndex["g"][$p]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_assigned"));
break;
case -4:
// email error
break;
}
}
else {
// Remove recipient from the index of possible revisors.
unset($revisionIndex["g"][$p]);
}
}
}
}
if (count($revisionIndex["g"]) > 0) {
foreach ($revisionIndex["g"] as $rx=>$rv) {
// if ($rv["status"] == 0) {
// Group is to be removed from the recipientist.
if (!isset($accessIndex["g"][$rx])) {
// Group does not have any revision privileges for this document
// revision or does not exist.
$res = $content->delGrpRevisor($dms->getGroup($rx), $user, getMLText("removed_revisor"));
}
else {
$res = $content->delGrpRevisor($accessIndex["g"][$rx], $user);
$gnm = $accessIndex["g"][$rx]->getName();
switch ($res) {
case 0:
// Send an email notification to the recipients group.
if($settings->_enableNotificationAppRev) {
if ($notifier) {
$notifier->sendDeleteRevisionMail($content, $user, $accessIndex["g"][$rx]);
}
}
break;
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
break;
case -4:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_was_active"));
break;
}
}
// }
}
}
/* If all revisors has been removed, then clear the next revision date */
if(!$pIndRev && !$pGrpRev) {
$content->setRevisionDate(false);
}
/* Recheck status, because all revisors could have been removed */
$content->verifyStatus(false, $user, getMLText('automatic_status_update'), $settings->_initialDocumentStatus);
add_log_line("?documentid=".$documentid);
header("Location:../out/out.DocumentVersionDetail.php?documentid=".$documentid."&version=".$version);
?>

View File

@ -139,8 +139,10 @@ if ($action == "saveSettings")
setBoolValue("enableSessionList");
setBoolValue("enableClipboard");
setBoolValue("alwaysShowClipboard");
setBoolValue("enableMenuTransmittals");
setBoolValue("enableMenuTasks");
setBoolValue("alwaysShowMenuTasks");
$settings->_tasksInMenu = isset($_POST["tasksInMenu"]) ? $_POST["tasksInMenu"] : array();
setBoolValue("enableDropFolderList");
setBoolValue("enableDropUpload");
setBoolValue("enableMultiUpload");
@ -157,6 +159,7 @@ if ($action == "saveSettings")
setStrValue("sortFoldersDefault");
setStrValue("defaultDocPosition");
setStrValue("defaultFolderPosition");
setIntValue("libraryFolder");
// SETTINGS - SITE - WEBDAV
setBoolValue("enableWebdavReplaceDoc");
@ -182,6 +185,8 @@ if ($action == "saveSettings")
setDirValue("extraPath");
setDirValue("dropFolderDir");
setDirValue("backupDir");
setDirValue("checkOutDir");
setBoolValue("createCheckOutDir");
setStrValue("repositoryUrl");
setDirValue("proxyUrl");
setDirValue("proxyUser");
@ -197,6 +202,7 @@ if ($action == "saveSettings")
// SETTINGS - SYSTEM - AUTHENTICATION
setBoolValue("enableGuestLogin");
setBoolValue("enableGuestAutoLogin");
setBoolValue("enable2FactorAuthentication");
setBoolValue("enableLoginByEmail");
setBoolValue("restricted");
setBoolValue("enableUserImage");
@ -249,11 +255,19 @@ if ($action == "saveSettings")
// SETTINGS - ADVANCED - EDITION
setStrValue("versioningFileName");
setStrValue("presetExpirationDate");
setStrValue("initialDocumentStatus");
setStrValue("workflowMode");
setBoolValue("enableReceiptWorkflow");
setBoolValue("enableReceiptReject");
setBoolValue("disableReceiptComment");
setBoolValue("enableRevisionWorkflow");
setBoolValue("enableRevisionOnVoteReject");
setBoolValue("allowReviewerOnly");
setBoolValue("allowChangeRevAppInProcess");
setBoolValue("enableAdminRevApp");
setBoolValue("enableOwnerRevApp");
setBoolValue("enableSelfRevApp");
setBoolValue("enableSelfReceipt");
setBoolValue("addManagerAsReviewer");
setBoolValue("addManagerAsApprover");
setArrayValue("globalReviewer");
@ -262,11 +276,17 @@ if ($action == "saveSettings")
setArrayValue("globalGroupApprover");
setBoolValue("enableUpdateRevApp");
setBoolValue("enableRemoveRevApp");
setBoolValue("enableAdminReceipt");
setBoolValue("enableOwnerReceipt");
setBoolValue("enableUpdateReceipt");
setBoolValue("enableFilterReceipt");
setBoolValue("enableVersionDeletion");
setBoolValue("enableVersionModification");
setBoolValue("enableDuplicateDocNames");
setBoolValue("enableDuplicateSubFolderNames");
setBoolValue("enableCancelCheckout");
setBoolValue("overrideMimeType");
setBoolValue("advancedAcl");
setBoolValue("removeFromDropFolder");
setBoolValue("uploadedAttachmentIsPublic");

40
op/op.Setup2Factor.php Normal file
View File

@ -0,0 +1,40 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2009-2012 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
include("../inc/inc.ClassPasswordStrength.php");
include("../inc/inc.ClassPasswordHistoryManager.php");
if ($user->isGuest()) {
UI::exitError(getMLText("2_fact_auth"),getMLText("access_denied"));
}
$secret = $_POST["secret"];
$user->setSecret($secret);
header("Location:../out/out.Setup2Factor.php");

View File

@ -37,7 +37,17 @@ if (!isset($_GET["userid"])) {
/* Check if user is allowed to switch to a different user */
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
$substitutes = $user->getReverseSubstitutes();
$found = false;
foreach($substitutes as $subsuser) {
/* Make sure a substitution is allowed and the substituted user
* is not an admin.
*/
if($subsuser->getID() == $_GET["userid"] && !$subsuser->isAdmin())
$found = true;
}
if(!$found)
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$session->setSu($_GET['userid']);

View File

@ -0,0 +1,77 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2016 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
include("../inc/inc.BasicAuthentication.php");
if(empty($_GET['hash']))
exit;
$token = new SeedDMS_JwtToken($settings->_encryptionKey);
if(!($tokenstr = $token->jwtDecode($_GET['hash'])))
exit;
$tokendata = json_decode($tokenstr, true);
if (!isset($tokendata['d']) || !is_numeric($tokendata['d'])) {
exit;
}
$document = $dms->getDocument($tokendata['d']);
if (!is_object($document)) {
exit;
}
if (!isset($tokendata['u']) || !is_numeric($tokendata['u'])) {
exit;
}
$user = $dms->getUser($tokendata['u']);
if (!is_object($user)) {
exit;
}
if ($document->getAccessMode($user) < M_READ) {
exit;
}
if (!isset($tokendata['v']) || !is_numeric($tokendata['v'])) {
exit;
}
$controller = Controller::factory('Preview', array('dms'=>$dms, 'user'=>$user));
$controller->setParam('width', !empty($tokendata["w"]) ? $tokendata["w"] : null);
$controller->setParam('document', $document);
$controller->setParam('version', $tokendata['v']);
$controller->setParam('type', 'version');
if(!$controller->run()) {
header('Content-Type: image/svg+xml');
readfile('../views/'.$theme.'/images/empty.svg');
exit;
}

View File

@ -31,7 +31,7 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}

View File

@ -0,0 +1,51 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2011-2013 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassController.php");
include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
if(isset($_GET["transmittalid"])) {
$transmittalid = $_GET["transmittalid"];
$transmittal = $dms->getTransmittal($transmittalid);
if (!is_object($transmittal)) {
UI::exitError(getMLText("my_account"), getMLText("invalid_version"));
}
if($transmittal->getUser()->getID() != $user->getID()) {
UI::exitError(getMLText("my_account"), getMLText("access_denied"));
}
$controller->setParam('transmittal', $transmittal);
$controller->run();
}

197
op/op.TransmittalMgr.php Normal file
View File

@ -0,0 +1,197 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2012 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.LogInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if ($user->isGuest()) {
UI::exitError(getMLText("my_transmittals"),getMLText("access_denied"));
}
if (isset($_POST["action"])) $action=$_POST["action"];
else $action=NULL;
// add new transmittal ---------------------------------------------------
if ($action == "addtransmittal") { /* {{{ */
/* Check if the form data comes for a trusted request */
if(!checkFormKey('addtransmittal')) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_request_token"));
}
$name = $_POST["name"];
$comment = $_POST["comment"];
$newTransmittal = $dms->addTransmittal($name, $comment, $user);
if ($newTransmittal) {
}
else UI::exitError(getMLText("my_transmittals"),getMLText("access_denied"));
$transmittalid=$newTransmittal->getID();
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_transmittal')));
add_log_line(".php&action=addtransmittal&name=".$name);
} /* }}} */
// delete transmittal ------------------------------------------------------------
else if ($action == "removetransmittal") { /* {{{ */
/* Check if the form data comes for a trusted request */
if(!checkFormKey('removetransmittal')) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_request_token"));
}
if (isset($_POST["transmittalid"])) {
$transmittalid = $_POST["transmittalid"];
}
if (!isset($transmittalid) || !is_numeric($transmittalid) || intval($transmittalid)<1) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_transmittal_id"));
}
$transmittalToRemove = $dms->getTransmittal($transmittalid);
if (!is_object($transmittalToRemove)) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_transmittal_id"));
}
if (!$transmittalToRemove->remove()) {
UI::exitError(getMLText("my_transmittals"),getMLText("error_occured"));
}
add_log_line(".php&action=removetransmittal&transmittalid=".$transmittalid);
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_transmittal')));
$transmittalid=-1;
} /* }}} */
// modify transmittal ----------------------------------------------------
else if ($action == "edittransmittal") { /* {{{ */
/* Check if the form data comes for a trusted request */
if(!checkFormKey('edittransmittal')) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_request_token"));
}
if (!isset($_POST["transmittalid"]) || !is_numeric($_POST["transmittalid"]) || intval($_POST["transmittalid"])<1) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_transmittal"));
}
$transmittalid=$_POST["transmittalid"];
$editedTransmittal = $dms->getTransmittal($transmittalid);
if (!is_object($editedTransmittal)) {
UI::exitError(getMLText("my_transmittals"),getMLText("invalid_transmittal"));
}
$name = $_POST["name"];
$comment = $_POST["comment"];
if ($editedTransmittal->getName() != $name)
$editedTransmittal->setName($name);
if ($editedTransmittal->getComment() != $comment)
$editedTransmittal->setComment($comment);
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_transmittal')));
add_log_line(".php&action=edittransmittal&transmittalid=".$transmittalid);
} /* }}} */
// remove transmittal item ------------------------------------------------
else if ($action == "removetransmittalitem") { /* {{{ */
if(!checkFormKey('removetransmittalitem', 'POST')) {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_request_token'), 'data'=>''));
} else {
$item = SeedDMS_Core_TransmittalItem::getInstance((int) $_REQUEST['id'], $dms);
if($item) {
$transmittal = $item->getTransmittal();
if($transmittal) {
if ($transmittal->getUser()->getID() == $user->getID()) {
if($item->remove()) {
header('Content-Type: application/json');
echo json_encode(array('success'=>true, 'message'=>'', 'data'=>''));
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'Error removing transmittal item', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No access', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal item', 'data'=>''));
}
}
add_log_line(".php&action=removetransmittalitem&id=".$_REQUEST['id']);
exit;
} /* }}} */
// update transmittal item ------------------------------------------------
else if ($action == "updatetransmittalitem") { /* {{{ */
if(!checkFormKey('updatetransmittalitem', 'POST')) {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_request_token'), 'data'=>''));
} else {
$item = SeedDMS_Core_TransmittalItem::getInstance((int) $_REQUEST['id'], $dms);
if($item) {
$transmittal = $item->getTransmittal();
if($transmittal) {
if ($transmittal->getUser()->getID() == $user->getID()) {
if($item->updateContent()) {
header('Content-Type: application/json');
echo json_encode(array('success'=>true, 'message'=>'', 'data'=>''));
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'Error updating transmittal item', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No access', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal', 'data'=>''));
}
} else {
header('Content-Type: application/json');
echo json_encode(array('success'=>false, 'message'=>'No transmittal item', 'data'=>''));
}
}
add_log_line(".php&action=updatetransmittalitem&id=".$_REQUEST['id']);
exit;
} /* }}} */
else UI::exitError(getMLText("my_transmittals"),getMLText("unknown_command"));
header("Location:../out/out.TransmittalMgr.php?transmittalid=".$transmittalid);

View File

@ -29,6 +29,11 @@ require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.Authentication.php");
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('UnlockDocument', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* Check if the form data comes from a trusted request */
if(!checkFormKey('unlockdocument', 'GET')) {
UI::exitError(getMLText("document_title"), getMLText("invalid_request_token"));
@ -44,6 +49,11 @@ if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('LockDocument', $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";

View File

@ -31,6 +31,10 @@ include("../inc/inc.ClassController.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
/* if post_max_size is to small, then $_POST will not be set and the content
* lenght will exceed post_max_size
@ -210,10 +214,13 @@ default:
// Get the list of reviewers and approvers for this document.
$reviewers = array();
$approvers = array();
$recipients = array();
$reviewers["i"] = array();
$reviewers["g"] = array();
$approvers["i"] = array();
$approvers["g"] = array();
$recipients["i"] = array();
$recipients["g"] = array();
$workflow = null;
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
@ -232,6 +239,16 @@ default:
$reviewers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual reviewers
if (isset($_POST["grpIndReviewers"])) {
foreach ($_POST["grpIndReviewers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$reviewers["i"][] = $member->getID();
}
}
}
}
// Retrieve the list of individual approvers from the form.
@ -248,6 +265,16 @@ default:
$approvers["g"][] = $grp;
}
}
// Retrieve the list of reviewer groups whose members become individual approvers
if (isset($_POST["grpIndApprovers"])) {
foreach ($_POST["grpIndApprovers"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member)
$approvers["i"][] = $member->getID();
}
}
}
// add mandatory reviewers/approvers
if($settings->_workflowMode == 'traditional') {
@ -262,6 +289,13 @@ default:
$approvers['i'] = array_merge($approvers['i'], $mapprovers['i']);
if($mapprovers['g'])
$approvers['g'] = array_merge($approvers['g'], $mapprovers['g']);
if($settings->_workflowMode == 'traditional' && !$settings->_allowReviewerOnly) {
/* Check if reviewers are send but no approvers */
if(($reviewers["i"] || $reviewers["g"]) && !$approvers["i"] && !$approvers["g"]) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_uploading_reviewer_only"));
}
}
} elseif($settings->_workflowMode == 'advanced') {
if(!$workflows = $user->getMandatoryWorkflows()) {
if(isset($_POST["workflow"]))
@ -279,6 +313,35 @@ default:
}
}
// Retrieve the list of individual recipients from the form.
$recipients["i"] = array();
if (isset($_POST["indRecipients"])) {
foreach ($_POST["indRecipients"] as $ind) {
$recipients["i"][] = $ind;
}
}
// Retrieve the list of recipient groups from the form.
$recipients["g"] = array();
if (isset($_POST["grpRecipients"])) {
foreach ($_POST["grpRecipients"] as $grp) {
$recipients["g"][] = $grp;
}
}
// Retrieve the list of recipient groups whose members become individual recipients
if (isset($_POST["grpIndRecipients"])) {
foreach ($_POST["grpIndRecipients"] as $grp) {
if($group = $dms->getGroup($grp)) {
$members = $group->getUsers();
foreach($members as $member) {
/* Do not add the uploader itself as recipient */
if(!$settings->_enableFilterReceipt || ($member->getID() != $user->getID() && !in_array($member->getID(), $reviewers['i'])))
if(!in_array($member->getID(), $recipients["i"]))
$recipients["i"][] = $member->getID();
}
}
}
}
if(isset($_POST["attributes_version"]) && $_POST["attributes_version"]) {
$attributes = $_POST["attributes_version"];
foreach($attributes as $attrdefid=>$attribute) {
@ -315,8 +378,10 @@ default:
$controller->setParam('userfiletype', $userfiletype);
$controller->setParam('reviewers', $reviewers);
$controller->setParam('approvers', $approvers);
$controller->setParam('recipients', $recipients);
$controller->setParam('attributes', $attributes);
$controller->setParam('workflow', $workflow);
$controller->setParam('initialdocumentstatus', $settings->_initialDocumentStatus);
$controller->setParam('maxsizeforfulltext', $settings->_maxSizeForFullText);
if(!$content = $controller()) {

View File

@ -155,7 +155,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
}
$filesize = SeedDMS_Core_File::fileSize($userfiletmp);
$contentResult=$document->addContent($comment, $user, $userfiletmp, basename($userfilename), $fileType, $userfiletype, $reviewers, $approvers);
$contentResult=$document->addContent($comment, $user, $userfiletmp, basename($userfilename), $fileType, $userfiletype, $reviewers, $approvers, $version=0, null, null, $settings->_initialDocumentStatus);
unlink($userfiletmp);
if (is_bool($contentResult) && !$contentResult) {
echo getMLText("error_occured");

View File

@ -34,7 +34,7 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access('UsrMgr', $_POST)) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
@ -69,7 +69,7 @@ if ($action == "adduser") {
if ($settings->_strictFormCheck && !$comment) {
UI::exitError(getMLText("admin_tools"),getMLText("user_comment_missing"));
}
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
$role = $dms->getRole($_POST["role"]);
$isHidden = (isset($_POST["ishidden"]) && $_POST["ishidden"]==1 ? 1 : 0);
$isDisabled = (isset($_POST["isdisabled"]) && $_POST["isdisabled"]==1 ? 1 : 0);
$homefolder = (isset($_POST["homefolder"]) ? $_POST["homefolder"] : 0);
@ -103,6 +103,14 @@ if ($action == "adduser") {
$group->addUser($newUser);
}
}
/* Set substitute user if set */
if(isset($_POST["substitute"]) && $_POST["substitute"]) {
foreach($_POST["substitute"] as $substitute) {
$subsuser = $dms->getUser($substitute);
$newUser->addSubstitute($subsuser);
}
}
}
else UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
@ -227,6 +235,10 @@ else if ($action == "removefromprocesses") {
$_POST["status"]["review"] = array();
if(!isset($_POST["status"]["approval"]))
$_POST["status"]["approval"] = array();
if(!isset($_POST["status"]["receipt"]))
$_POST["status"]["receipt"] = array();
if(!isset($_POST["status"]["revision"]))
$_POST["status"]["revision"] = array();
if(!empty($_POST['needsdocs']) && empty($_POST['docs'])) {
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_rm_user_processes_no_docs')));
} else {
@ -362,7 +374,7 @@ else if ($action == "edituser") {
$email = $_POST["email"];
$comment = $_POST["comment"];
$theme = $_POST["theme"];
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
$role = $dms->getRole($_POST["role"]);
$isHidden = (isset($_POST["ishidden"]) && $_POST["ishidden"]==1 ? 1 : 0);
$isDisabled = (isset($_POST["isdisabled"]) && $_POST["isdisabled"]==1 ? 1 : 0);
$homefolder = (isset($_POST["homefolder"]) ? $_POST["homefolder"] : 0);
@ -384,9 +396,9 @@ else if ($action == "edituser") {
}
if ($editedUser->getLogin() != $login)
$editedUser->setLogin($login);
if($pwdexpiration)
if($pwdexpiration != 'keep')
$editedUser->setPwdExpiration($pwdexpiration);
if(($role == SeedDMS_Core_User::role_guest) && $clearpwd) {
if($role->isGuest() && $clearpwd) {
$editedUser->setPwd('');
} else {
if (isset($pwd) && ($pwd != "")) {
@ -478,6 +490,26 @@ else if ($action == "edituser") {
$group->removeUser($editedUser);
}
/* Set substitute user if set */
if(isset($_POST["substitute"]) && $_POST["substitute"])
$newsubs = $_POST['substitute'];
else
$newsubs = array();
$oldsubs = array();
foreach($editedUser->getSubstitutes() as $k)
$oldsubs[] = $k->getID();
$addsubs = array_diff($newsubs, $oldsubs);
foreach($addsubs as $subid) {
$subsuser = $dms->getUser($subid);
$editedUser->addSubstitute($subsuser);
}
$delsubs = array_diff($oldsubs, $newsubs);
foreach($delsubs as $subid) {
$subsuser = $dms->getUser($subid);
$editedUser->removeSubstitute($subsuser);
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_user')));
add_log_line(".php&action=edituser&userid=".$userid);
}

View File

@ -31,6 +31,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user));
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
if (!$accessop->check_controller_access($controller, $_POST)) {
UI::exitError(getMLText("document_title", array("documentname" => "")),getMLText("access_denied"));
}
$documentid = $_GET["documentid"];
if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) {

Some files were not shown because too many files have changed in this diff Show More