Commit Graph

261 Commits

Author SHA1 Message Date
Uwe Steinmann
e3dea1073c actually set owner notified user, not the logged in user, check if notified user has access on document not currently logged in user. 2020-08-25 15:53:29 +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
991268a18b put ClearCache into controller, add hooks when clearing the cache 2020-08-21 10:03:22 +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
4efb265f2c export encrypted password 2020-07-28 12:53:17 +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
40a6de0353 fix output of log lines 2020-07-27 15:30:30 +02:00
Uwe Steinmann
076535bf7d a script for export users as csv 2020-07-27 14:17:11 +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
395d71b705 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-24 21:23:08 +02:00
Uwe Steinmann
472caa19ba check if attributesversion has a value 2020-06-24 21:15:33 +02:00
Uwe Steinmann
579b561d9d add script to run scheduled tasks 2020-05-27 22:07:13 +02: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
aa0802ffae check if hook has left an error msg $dms->lasterror 2020-03-25 08:06:33 +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
072d203379 return false if hooks preRemove[Document|Folder] return false 2020-03-23 12:10:04 +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
f17b120126 move code into controller and add hooks 2020-03-22 09:31:31 +01:00
Uwe Steinmann
80348ec0c3 set timeout from settings 2020-03-22 09:27:41 +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
6bf193aa85 removePreviews() has been moved into controller 2020-02-25 17:08:13 +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
974ff603e1 check if hooks return a user object because true also indicates a failed login 2020-01-07 21:20:16 +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
8ae2874367 do not use global var EXT_CONF anymore 2020-01-03 10:21:58 +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
b3ffdd3b7d extension are disabled in the settings
the configuration of the extension will no longer work for disabling an
extension
2019-12-20 17:20:15 +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
058fc1217e fix validation of attributes 2019-12-13 17:39:05 +01:00
Uwe Steinmann
a0661536b3 move attribute validation into controller and call hook 2019-12-13 15:00:04 +01:00
Uwe Steinmann
7e3f490b57 fix getting view parameter 'onevotereject' 2019-10-18 07:23:20 +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
4215eda966 remember current folder id on page, update drop folder list regulary 2019-09-05 12:53:45 +02:00
Uwe Steinmann
140926be96 log creation of preview files 2019-08-27 21:46:40 +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
111a2beec6 SeedDMS_Core_Folder::empty is now emptyFolder 2019-07-17 10:51:12 +02:00
Uwe Steinmann
585c81bb66 allow pass the object with the document content 2019-07-05 14:13:29 +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
c9d9bf6c7b new function and controller for emptying a folder 2019-07-02 08:47:12 +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
0f38a3dff6 propperly evaluate lang from REQUEST 2019-04-17 08:29:19 +02:00
Uwe Steinmann
cd4eb3d115 move code for getting version into method version() 2019-03-27 15:30:11 +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
e7f195f921 there is no parameter 'name' 2019-03-14 07:47:53 +01:00
Uwe Steinmann
d71d78138b use the latestet version if no version is given 2019-03-14 07:47:23 +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
07d7bb0834 return true if operation was succesful 2019-02-11 19:20:07 +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
8db66fa33b add controller 2019-02-06 13:10:33 +01:00
Uwe Steinmann
e2ab2ba1af call hook to get document content 2019-02-06 13:10:00 +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
a19db806cf check if configured guest user actually exists 2019-02-05 07:34:48 +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
a03288ccf3 login as guest will prevent any other authentication 2019-01-31 11:22:21 +01:00
Uwe Steinmann
e0bbc4bab5 call hooks like in updateDocument 2019-01-17 18:27:38 +01:00
Uwe Steinmann
35fa67ae93 call hooks like in AddDocument 2019-01-17 18:27:10 +01:00
Uwe Steinmann
d9a8f35a6a always call hook postRemoveDocument and index document 2019-01-17 18:26:22 +01:00
Uwe Steinmann
5009a25439 always call postEditFolder 2019-01-17 18:25:39 +01:00
Uwe Steinmann
fc63d1c15e always call postRemoveFolder 2019-01-17 18:25:01 +01:00
Uwe Steinmann
d1a8541d02 remove duplicate authentication code 2019-01-17 18:24:29 +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
b7ffaa878e move most of the login code into a controller 2019-01-11 15:07:20 +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
4c3e7acdeb catch error if document cannot be updated (Closes #410) 2018-11-09 17:20:53 +01: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
e98dc5e4f2 removeFromIndex() returns null, otherwise the removeFolder is canceled 2018-04-11 17:35:59 +02:00
Uwe Steinmann
28e65a1520 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2018-04-03 06:17:42 +02:00
efinal
8a0d9b2481 change to use utf8_basename, see https://sourceforge.net/p/seeddms/discussion/general/thread/b3b3b320/ for detail 2018-04-01 17:11:04 +08: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
b1bf70e828 add more error msgs 2018-03-22 15:12:24 +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
3a2e0d70d2 add missing controller 2018-03-21 13:40:17 +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
36e711f905 move code into switch statement 2018-03-12 18:32:12 +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
81b9fb89e5 add action removeattrvalue() 2018-02-22 19:11:57 +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
b3c000de45 use sendfile() instead of readfile() 2018-01-18 17:28:30 +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
d4af7b5c9a use sendFile() instead of readfile() 2018-01-18 08:49:44 +01:00
Uwe Steinmann
e97c3a4b25 allow to set receiver when uploading a document 2018-01-16 18:15:05 +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
7d4a0488ec add controller for AttributeMgr 2017-12-07 18:23:07 +01:00
Uwe Steinmann
8a26b51ff3 documents can be transfered to another user
include document links, attachments, locks
2017-12-05 18:38:06 +01:00
Uwe Steinmann
795b6c52e2 add scripts for modifying attachments 2017-12-05 08:26:40 +01: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
e31ce5d8c3 move code into controller 2017-10-18 06:50:15 +02:00
Uwe Steinmann
bd4b85d15e fix syntax error (Closes: #358) 2017-10-16 09:04:01 +02:00
Uwe Steinmann
578bb7c896 check if preRemove[Folder|Document] hook succeeds 2017-10-12 15:41:31 +02:00
Uwe Steinmann
9720703c37 get parameters from view right before used
allows to modify those parameters in preEditFolder hook
2017-10-12 15:40:38 +02:00
Uwe Steinmann
7563ebdbf7 do not pass name and comment to preAddDocument hook 2017-10-12 15:40:09 +02:00
Uwe Steinmann
0e9179a9e5 move most of the logic into the controller 2017-10-12 15:38:41 +02:00
Uwe Steinmann
0c8daca856 fix wrong check for extings approval/review file 2017-08-21 13:43:36 +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
500bade66a get name and comment from parameters after preUpdateDocument has been called 2017-06-23 12:58:36 +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
7a1c4b495c set error msg only if not already set 2017-06-13 14:47:04 +02:00
Uwe Steinmann
d64a662aed get name and comment after preAddDocument hook, set generic err msg only if hook hasn't set one 2017-06-09 12:28:17 +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
8e69893e89 move updating document into controller 2017-05-04 13:48:07 +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
cdbb70f3b9 take out method addAttachments() 2017-04-28 13:09:56 +02:00
Uwe Steinmann
73ecd55974 move code into controller 2017-04-27 17:20:33 +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
10b62bc7fb call hook 'rawcontent' 2017-04-04 07:11:51 +02: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
fea676c1d4 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2017-02-24 19:07:23 +01:00
Uwe Steinmann
efa316dbf8 propperly set defaultaccess 2017-01-25 15:09:51 +01:00
Uwe Steinmann
b90d1a6be5 pass comment to finishRevision() 2017-01-25 14:51:38 +01:00
Uwe Steinmann
40956e9501 paѕs owner to controller 2017-01-25 12:24:47 +01:00
Uwe Steinmann
27247438f5 call new hook finishReviseDocument 2017-01-24 14:20:10 +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
865ac3b424 set Content-Disposition even if file type not in list of online file types 2017-01-10 08:48:05 +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
b27b8ba7fd check access rights in controller, not before 2017-01-10 06:58:07 +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
d70deddd2f check if hook returns null
in that case run the default operation
2016-11-22 09:20:12 +01:00
Uwe Steinmann
87bbb6bf44 use orig file, set filename in utf-8 2016-11-09 19:54:53 +01: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
b8fa88b674 check for min number of attribute values 2016-10-27 10:55:33 +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
02d641786b use same attribute validation
based on SeedDMS_Core::AttributeDefinition->validate() and getAttributeValidationText()
2016-10-27 09:19:35 +02:00
Uwe Steinmann
dc2edaca25 move more code into controller class 2016-08-11 22:56:12 +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
7e24402671 place code into controller 2016-04-13 18:31:28 +02:00
Uwe Steinmann
fe8e1d2b52 proper check of return value of setStatus() 2016-03-24 15:41:23 +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
6b88d116ad fix syntax error 2016-02-18 20:34:16 +01:00
Uwe Steinmann
bc608eff07 Merge branch 'seeddms-5.0.x' into develop 2016-02-15 20:45:05 +01:00
Uwe Steinmann
202d994e1c Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2016-02-15 17:08:01 +01:00
Uwe Steinmann
c22b22f49a Merge branch 'seeddms-5.0.x' into develop 2015-11-15 17:36:45 +01:00
Uwe Steinmann
3d42b3eab5 Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2015-11-15 17:35:54 +01:00
Uwe Steinmann
aa49c5b0b1 Merge branch 'seeddms-5.0.x' into develop 2015-08-10 21:58:16 +02:00
Uwe Steinmann
65fda6daee Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2015-08-10 21:53:27 +02:00
Uwe Steinmann
da7c04d250 actually use uploaded file 2015-06-12 12:56:17 +02:00
Uwe Steinmann
394a23fa57 add download of documents 2015-06-09 21:31:13 +02:00
Uwe Steinmann
46dc4ea6e3 add code for downloading file into contoller 2015-06-08 21:59:56 +02:00
Uwe Steinmann
944b059abe set initial document status 2015-06-02 10:03:09 +02:00
Uwe Steinmann
c460c9e674 pass content not document to hooks 2015-06-01 17:34:52 +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
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
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
4c74bda247 add files to download content of transmittal 2015-05-12 19:06:23 +02:00
Uwe Steinmann
dbc7ffb4f6 validate attribute values and set error msg 2015-04-15 16:12:11 +02:00