Compare commits

...

1694 Commits

Author SHA1 Message Date
Yuri Kuznetsov 2a64537da1 8.4.2 2024-10-10 18:09:49 +03:00
Yuri Kuznetsov 6d3c765ef6 kanban group change save handler 2024-10-10 17:58:41 +03:00
Yuri Kuznetsov 8f96c8c3e1 build cleanup modules 2024-10-07 19:26:29 +03:00
Yuri Kuznetsov 43749cbabb task email link no foreign name 2024-10-04 11:43:45 +03:00
Yuri Kuznetsov 803185b747 fix datepicker error 2024-09-30 09:56:06 +03:00
Yuri Kuznetsov 4f5886fbd7 remove from modal fixes 2024-09-28 16:45:45 +03:00
Yuri Kuznetsov c28ba84f03 email: fix collection trash/archive sync 2024-09-27 19:20:38 +03:00
Yuri Kuznetsov 7f08df77f6 email afterSave not called fix 2024-09-26 10:01:43 +03:00
Yuri Kuznetsov 48116f8dcf 8.4.1 2024-09-17 11:09:08 +03:00
Yuri Kuznetsov 0784fd589a update dompurify 2024-09-17 09:59:54 +03:00
Yuri Kuznetsov 8b8d3ee158 auth token lifetime int conversion fix 2024-09-14 10:47:13 +03:00
Yuri Kuznetsov 628e7e8131 hmac api key check with hex 2024-09-12 13:00:56 +03:00
Eymen Elkum 408a161595 fix row action return undefined (#3140) 2024-09-11 15:23:53 +03:00
Yuri Kuznetsov b46c6d76a5 case portal user follow acl check 2024-09-09 13:30:51 +03:00
Yuri Kuznetsov d78f7d499a restore deleteId for UI upgrade only 2024-09-05 13:45:18 +03:00
Yuri Kuznetsov 5662fed5eb color changes 2024-09-05 09:56:08 +03:00
Yuri Kuznetsov 3f4cdf629f mass email hour limit required 2024-09-04 12:30:30 +03:00
Yuri Kuznetsov bedab9c780 fix diff 2024-09-03 18:17:01 +03:00
Yuri Kuznetsov 291bcf1684 note replace app link fix 2024-09-03 11:37:41 +03:00
Yuri Kuznetsov bd9e1bf353 fix tag 2024-09-03 09:08:56 +03:00
Yuri Kuznetsov 7d507460be fix header markup 2024-09-02 18:09:29 +03:00
Yuri Kuznetsov 99b4205181 lang 2024-09-02 09:08:40 +03:00
Yuri Kuznetsov 5ae56454fc color change 2024-09-01 10:50:37 +03:00
Yuri Kuznetsov 1e2369bba1 jsdoc 2024-09-01 10:35:18 +03:00
Yuri Kuznetsov c42bfa3aab kanban reuse subCollections after rebuild 2024-09-01 10:30:21 +03:00
Yuri Kuznetsov 2b01cefb66 cleanup 2024-08-31 16:50:57 +03:00
Yuri Kuznetsov 0b72848e33 hide show detail modes 2024-08-31 16:41:24 +03:00
Yuri Kuznetsov ecc7f80c80 schema 2024-08-31 14:32:28 +03:00
Yurii be5fff011b change email folder order 2024-08-30 17:16:52 +03:00
Yuri Kuznetsov d7a29fdc71 int field: support big int in frontend 2024-08-30 15:40:35 +03:00
Yurii e1c2203750 int range validation 2024-08-30 10:42:51 +03:00
Yuri Kuznetsov 66cde8c86c email read notification websocket 2024-08-30 08:39:25 +03:00
Yuri Kuznetsov 10fb006fd8 comment 2024-08-30 08:39:09 +03:00
Osama Bashir b94c5ff869 Get only active users in email address lookup (#3132)
* Get only active users in email address lookup

* fix isActive field name
2024-08-29 09:37:35 +03:00
Yuri Kuznetsov 39898bbbe8 preferences page title 2024-08-29 09:35:09 +03:00
Yuri Kuznetsov 62a6c2761f fix dashlet sort translation 2024-08-28 11:09:02 +03:00
Yuri Kuznetsov 6fe6a52f47 collapsed modal overlap fix 2 2024-08-28 10:48:46 +03:00
Yuri Kuznetsov c5d7fa5b0b style fix 2024-08-28 10:37:54 +03:00
Yuri Kuznetsov ceaac6c3dc collapsed modal z-index 2024-08-28 10:37:05 +03:00
Yuri Kuznetsov 490843e371 fix email body null 2024-08-28 10:27:14 +03:00
Yuri Kuznetsov b290fbfeb2 fix email plain 2024-08-27 17:33:39 +03:00
Yuri Kuznetsov ca1e649b11 emailReplyForceHtml true by default 2024-08-27 16:57:43 +03:00
Yuri Kuznetsov 5e74cd8d06 font change 2024-08-27 16:15:15 +03:00
Yuri Kuznetsov 63508423cc email archive row action 2024-08-27 11:03:48 +03:00
Yurii Kuznietsov a5961811b4 Update feature_request.md 2024-08-27 00:05:30 +03:00
Yuri Kuznetsov fdb1595cd5 sticky bar fix 2024-08-26 23:55:03 +03:00
Yuri Kuznetsov 4bfedf8db3 fix test 2024-08-26 15:02:24 +03:00
Yuri Kuznetsov 325429eb52 comment out email index 2024-08-26 13:34:31 +03:00
Yuri Kuznetsov e558a3139c fix move to folder 2024-08-26 10:33:13 +03:00
Yuri Kuznetsov e424c26963 fix select/create related from modal 2024-08-26 10:31:06 +03:00
dependabot[bot] b2cc1f97c4 Bump axios from 1.7.2 to 1.7.5 (#3128)
Bumps [axios](https://github.com/axios/axios) from 1.7.2 to 1.7.5.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.2...v1.7.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:11:12 +03:00
dependabot[bot] d48ce0fc58 Bump micromatch from 4.0.5 to 4.0.8 (#3127)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:11:02 +03:00
Yuri Kuznetsov b61462a1cd version 2024-08-26 09:15:55 +03:00
Andrew Fontana 1bb82151da Fix Typo (#3125)
Fix typo enabled to enable.
2024-08-25 11:05:14 +03:00
Anthony Andriano 9852e25c6e replaced literal with enum (#3124) 2024-08-25 09:26:52 +03:00
Yuri Kuznetsov 90fe358753 ics attendees 2024-08-23 19:18:16 +03:00
Yuri Kuznetsov bd65e62fce ref, test 2024-08-23 18:37:21 +03:00
Yuri Kuznetsov fff9d7a781 group email account is system read only field 2024-08-23 11:47:38 +03:00
Yuri Kuznetsov 8441fa05d2 calendar non working all-day timzone correction 2024-08-23 11:20:10 +03:00
Yuri Kuznetsov 9e86649b1c ref cs 2024-08-23 10:33:36 +03:00
Yuri Kuznetsov 3c50a0e058 backdrop click 2024-08-22 17:28:23 +03:00
Yuri Kuznetsov e571a63a30 change user position action 2024-08-22 17:25:38 +03:00
Yuri Kuznetsov 14d405542b ref 2024-08-21 09:24:29 +03:00
Yuri Kuznetsov 429d03504c ref 2024-08-20 22:17:13 +03:00
Yuri Kuznetsov fc24840a7b ref 2024-08-20 15:43:54 +03:00
Yuri Kuznetsov 603ca985df fix mass select 2024-08-20 12:05:44 +03:00
Yuri Kuznetsov a12940e36c ref 2024-08-20 11:09:16 +03:00
Yuri Kuznetsov dcab0ad7d0 ref 2024-08-20 09:42:42 +03:00
Yuri Kuznetsov 89124b354b idea code style change 2024-08-20 09:42:29 +03:00
Yuri Kuznetsov 03c275f495 pdf template: x-if attribute 2024-08-19 14:21:43 +03:00
Yuri Kuznetsov da89e0a321 pdf templates: compare and logic helpers 2024-08-19 12:45:32 +03:00
Yuri Kuznetsov 90af51b8b9 ref 2024-08-19 10:03:49 +03:00
Yuri Kuznetsov 92b82b9d4c cs fix 2024-08-19 09:36:27 +03:00
Yuri Kuznetsov c0aabe65d7 cleanup 2024-08-18 12:51:48 +03:00
Yuri Kuznetsov 6e6478bb6a change test 2024-08-18 11:19:14 +03:00
Yuri Kuznetsov d457b461e7 config default databaseHandler 2024-08-17 10:16:34 +03:00
Yuri Kuznetsov 2f6673f8d9 fix test 2024-08-16 19:54:09 +03:00
Yuri Kuznetsov ee94408394 fix redundant escaping in regexp 2024-08-16 19:33:19 +03:00
Yuri Kuznetsov 6d343cb564 ref 2024-08-16 19:31:47 +03:00
Yuri Kuznetsov f5c07c9d6b htmllizer: apply access control for iterated related records 2024-08-16 19:21:38 +03:00
Yuri Kuznetsov f9f2eaeb1f ref 2024-08-16 19:06:25 +03:00
Yuri Kuznetsov 16d8015d92 ref 2024-08-16 19:04:01 +03:00
Yuri Kuznetsov 2fa330d6f3 cs 2024-08-16 18:57:04 +03:00
Yuri Kuznetsov 3bd2c8a813 calendar 0 duration fix 2024-08-16 10:23:38 +03:00
Yuri Kuznetsov 12ba23e8ab jsdoc 2024-08-16 10:09:51 +03:00
Yuri Kuznetsov e7c3314285 afterOrEqual datetime 2024-08-15 20:32:24 +03:00
Yuri Kuznetsov 13ec8dd49f validate call after 2024-08-15 20:17:39 +03:00
Yuri Kuznetsov 80146e8bca fix massActionDefs undefined 2024-08-15 16:13:18 +03:00
Yuri Kuznetsov b974c673d2 orm event dispatched unsubscribe method 2024-08-15 10:05:28 +03:00
Yuri Kuznetsov c7ae23fd01 type change 2024-08-15 09:46:13 +03:00
Yuri Kuznetsov ccd21ebf76 comment 2024-08-14 19:08:50 +03:00
Yuri Kuznetsov f5c1fdebf3 ref 2024-08-14 19:07:19 +03:00
Yuri Kuznetsov 863cd03eb3 fix call on undefined 2024-08-14 18:31:12 +03:00
Yuri Kuznetsov d3eb08b171 clear runtime cache in entity factory 2024-08-14 16:42:29 +03:00
Yuri Kuznetsov 5a39450e6d ref 2024-08-14 09:55:13 +03:00
Yuri Kuznetsov dd40786b6f ref 2024-08-14 09:41:06 +03:00
Yuri Kuznetsov 35e894a391 ref 2024-08-14 09:18:12 +03:00
Yuri Kuznetsov 8bd2b32908 prevent removal link fields 2024-08-13 16:31:50 +03:00
Yuri Kuznetsov ce58cc262f disable kanban on status field unset 2024-08-13 12:32:47 +03:00
Yuri Kuznetsov 2dad119c3c ref 2024-08-13 09:47:46 +03:00
Yuri Kuznetsov 7e872e845c filters layout 2024-08-12 10:21:53 +03:00
Yuri Kuznetsov 678e39b0e5 jsdoc fix 2024-08-11 18:34:29 +03:00
Yuri Kuznetsov ce10665bc3 ref, cs 2024-08-11 16:05:05 +03:00
Yuri Kuznetsov d091ebbd23 fix regexp 2024-08-11 15:47:36 +03:00
Yuri Kuznetsov 68e495566d ref 2024-08-10 11:50:29 +03:00
Yuri Kuznetsov 9943e413c1 adjust header font size on button show hide 2024-08-10 11:38:40 +03:00
Yuri Kuznetsov 8f4f4b4ac1 suppress inspection 2024-08-10 11:14:33 +03:00
Yuri Kuznetsov 4a7f967d4f ref 2024-08-09 14:01:53 +03:00
Yuri Kuznetsov abf5690239 ref 2024-08-09 13:41:07 +03:00
Yuri Kuznetsov bc6946e6be cleanup 2024-08-09 13:18:46 +03:00
Yuri Kuznetsov 06001a4b4c fix mention regular expression 2024-08-09 11:46:42 +03:00
Yuri Kuznetsov d5d913cf12 ref 2024-08-09 11:36:15 +03:00
Yuri Kuznetsov 37f7fa8464 layout set layout label change 2024-08-09 11:35:30 +03:00
Yuri Kuznetsov 27c98bdf0f ref 2024-08-09 11:35:01 +03:00
Yuri Kuznetsov 2c223a0739 supress inspection 2024-08-09 11:31:04 +03:00
Yuri Kuznetsov 3c756e6252 ref 2024-08-09 10:59:57 +03:00
Yuri Kuznetsov e7331efcbe ref 2024-08-08 19:59:49 +03:00
Yuri Kuznetsov 62ae30aa8f ref 2024-08-08 18:45:05 +03:00
Yuri Kuznetsov c49f6c8045 ref 2024-08-08 18:39:35 +03:00
Yuri Kuznetsov 16ce6eb0b9 ref 2024-08-08 17:06:22 +03:00
Yuri Kuznetsov 701422892a merge 2024-08-08 14:25:54 +03:00
Yuri Kuznetsov abd2016444 8.3.6 2024-08-08 14:07:26 +03:00
Eymen Elkum cc68bd640e improve admin index quick search 2024-08-08 13:54:07 +03:00
Yuri Kuznetsov c247a24db4 fix email edit access error 2024-08-08 13:41:03 +03:00
Yuri Kuznetsov b8a484cb7e ref 2024-08-08 11:22:57 +03:00
Yuri Kuznetsov 61d546a649 ref 2024-08-08 11:06:24 +03:00
Yuri Kuznetsov 23b9c08752 ref 2024-08-08 11:04:42 +03:00
Yuri Kuznetsov 191f834e0f ref 2024-08-08 10:39:06 +03:00
Yuri Kuznetsov 9fa9198963 delete has-children foreign links with entity deletion 2024-08-07 14:47:35 +03:00
Yuri Kuznetsov f89e8acb79 tasks dashlet order 2024-08-07 13:58:10 +03:00
Yuri Kuznetsov 33fbe125fa ref 2024-08-07 10:35:55 +03:00
Yuri Kuznetsov d93dd9f6df export all, select all 2024-08-06 15:09:18 +03:00
Yuri Kuznetsov 08841f7da5 avatar cache timestamp in no cache 2024-08-06 12:41:24 +03:00
Yuri Kuznetsov 725222e4c2 ref 2024-08-06 12:33:48 +03:00
Yuri Kuznetsov 003f7864b3 ref 2024-08-06 12:05:00 +03:00
Yuri Kuznetsov 48efcdb7a8 ref 2024-08-06 11:57:28 +03:00
Yuri Kuznetsov 7bc8c2f161 ref 2024-08-05 10:12:55 +03:00
Yuri Kuznetsov 4e3cb38477 ref 2024-08-05 10:00:04 +03:00
Yuri Kuznetsov 20ac2dd2d7 fix 2024-08-05 09:49:02 +03:00
Yuri Kuznetsov 0cabbaab01 ref 2024-08-05 09:48:08 +03:00
Yuri Kuznetsov 8cc7adee3f ref 2024-08-04 17:13:31 +03:00
Yuri Kuznetsov 9d297d5587 ref 2024-08-04 17:13:22 +03:00
Yuri Kuznetsov 6e2409d969 fix typo 2024-08-02 15:18:29 +03:00
Yuri Kuznetsov b8cdbfb585 cs 2024-08-02 15:15:06 +03:00
Yuri Kuznetsov 5c06345424 range int ref, disable formatting 2024-08-02 15:14:32 +03:00
Yuri Kuznetsov 142cbfa4b8 replace bootstrap 2024-08-02 13:13:52 +03:00
Yuri Kuznetsov 04018bba93 afterOrEqual 2024-08-02 10:21:13 +03:00
Yuri Kuznetsov e77143640b working time range dynamic logic 2024-08-02 10:07:22 +03:00
Yuri Kuznetsov 2964fff2cd working time range tooltips 2024-08-02 09:58:35 +03:00
Yuri Kuznetsov 0c8cdb61dc stream create shortcut 2024-08-01 19:48:28 +03:00
Yuri Kuznetsov a9e0dad0dd log: load formatter for handlers loaded with loader 2024-08-01 18:47:57 +03:00
Yuri Kuznetsov b34d8ebca8 mass email: allow create if only edit access to campaign 2024-08-01 15:02:02 +03:00
Yuri Kuznetsov ed795d0d49 docs, ref 2024-08-01 14:37:54 +03:00
Yuri Kuznetsov 2673f60831 jsdocs, ref 2024-08-01 14:14:02 +03:00
Yuri Kuznetsov 09b56fd8c0 jsdocs 2024-08-01 14:11:31 +03:00
Yuri Kuznetsov 44175614d4 frontend tests update 2024-08-01 12:11:52 +03:00
Yuri Kuznetsov 1b7657bf0c readme fix 2024-08-01 11:35:55 +03:00
Yuri Kuznetsov 469fcdb8bc invitation, set parent 2024-08-01 10:59:11 +03:00
Yuri Kuznetsov fde53deae6 ref 2024-08-01 10:50:04 +03:00
Yuri Kuznetsov e470bf4eb1 strip prefixes from relationship name 2024-08-01 10:24:46 +03:00
Yuri Kuznetsov 5011f1e197 link manager strip c 2024-08-01 10:16:31 +03:00
Yuri Kuznetsov bc37a83982 datepicker restrict after 2024-07-31 15:57:54 +03:00
Yuri Kuznetsov d97b9be4c9 update mailmimeparser with dependencies 2024-07-31 15:03:58 +03:00
Yuri Kuznetsov e51a9621f3 test connection fix 2024-07-31 15:01:08 +03:00
Yuri Kuznetsov 6dde915b7e comment 2024-07-31 14:14:42 +03:00
Yuri Kuznetsov a109e1353d authentication: bypass second step 2024-07-31 14:12:09 +03:00
Yuri Kuznetsov 8018478b13 cleanup 2024-07-31 11:38:18 +03:00
Yuri Kuznetsov 9edb8bd59a cs 2024-07-31 11:32:42 +03:00
Yuri Kuznetsov 3b3b05286a address search for specific entity type 2024-07-31 11:26:29 +03:00
Yuri Kuznetsov bb534e6c46 record list dashlet additional row actions 2024-07-30 15:04:04 +03:00
Yuri Kuznetsov fce05fd5d2 user list view avatar 2024-07-29 17:05:45 +03:00
Yuri Kuznetsov 875be06d28 opp kanban layout change 2024-07-29 17:04:29 +03:00
Yuri Kuznetsov 0125ad0db9 fix link multiple fetched columns 2024-07-29 14:09:50 +03:00
Yuri Kuznetsov 4634c5d30f move selectRelated and createRelated to helpers 2024-07-29 11:35:12 +03:00
Yuri Kuznetsov 6bd717fe5d bottom view for small record views 2024-07-29 10:12:52 +03:00
Yuri Kuznetsov be56156516 ref 2024-07-29 09:58:36 +03:00
Yuri Kuznetsov 3da90da35b fix panel label 2024-07-29 09:47:42 +03:00
Yuri Kuznetsov 6b9ebdc731 field change reRended fromField check 2024-07-27 09:57:39 +03:00
Yuri Kuznetsov 1d0d12649f modal edit headerText option 2024-07-27 09:20:29 +03:00
Yuri Kuznetsov e2aa06f755 link multiple saver: skip not existing columns 2024-07-26 16:50:28 +03:00
Yuri Kuznetsov 19e4943410 reset to default color 2024-07-26 12:00:46 +03:00
Yuri Kuznetsov 668233a978 exclude personal addresses from cc when replying 2024-07-25 18:50:25 +03:00
Yuri Kuznetsov 5a3bfe5f68 create portal user lower case name 2024-07-25 18:35:13 +03:00
Yuri Kuznetsov 90ff998e5c ref 2024-07-25 18:34:00 +03:00
Yuri Kuznetsov 71b7c1af2b working time specific calendar 2024-07-25 09:26:50 +03:00
Yuri Kuznetsov 997e5cc44c ref 2024-07-25 08:59:28 +03:00
Yuri Kuznetsov 3f8e6b2854 fix 2024-07-23 21:24:13 +03:00
Yuri Kuznetsov 3bf7ec7e9d fix mid keys only for custom 2024-07-23 20:35:28 +03:00
Yuri Kuznetsov 1d7c47f005 do not load link multiple is loaded 2024-07-23 12:20:56 +03:00
Yuri Kuznetsov b1d77bdca0 midKeys order fix 2024-07-23 11:21:17 +03:00
Yuri Kuznetsov 36a9563e69 cleanup 2024-07-23 08:36:51 +03:00
Yuri Kuznetsov 67e1917426 mid keys converter fix 2024-07-23 08:36:19 +03:00
Yuri Kuznetsov 344714fda0 ref 2024-07-21 15:05:03 +03:00
Yuri Kuznetsov 836de2d624 phpdocs 2024-07-21 09:52:36 +03:00
Yuri Kuznetsov 2c5e548c07 orm getRelation 2024-07-21 09:49:19 +03:00
Yuri Kuznetsov f0ac0dc03e related list parent model 2024-07-19 15:20:50 +03:00
Yuri Kuznetsov 2bb53c5495 highlighted classes 2024-07-19 10:21:34 +03:00
Yuri Kuznetsov e0256018de noDefaultFilters 2024-07-18 09:05:03 +03:00
Yuri Kuznetsov 019cea2641 kanban update total event 2024-07-18 07:41:09 +03:00
Yuri Kuznetsov d8286a2de6 kanban topBarDisabled 2024-07-18 07:15:15 +03:00
Yuri Kuznetsov 685f034e15 enum set translated options method 2024-07-17 13:19:21 +03:00
Yuri Kuznetsov 3210733bc7 kanban methods 2024-07-17 12:56:45 +03:00
Yuri Kuznetsov 38ad6def8c fix selectable click 2024-07-17 12:22:06 +03:00
Yuri Kuznetsov b2d31d0230 fix kanban show more 2024-07-17 00:07:57 +03:00
Yuri Kuznetsov ddd9a1dc88 kanban createActionHandler 2024-07-16 23:51:19 +03:00
Yuri Kuznetsov 3355ee7192 fix 2024-07-16 19:44:54 +03:00
Yuri Kuznetsov a4e694412c kanban group item more data 2024-07-16 19:40:36 +03:00
Yuri Kuznetsov 7222a5a546 kanban empty render 2024-07-16 19:38:38 +03:00
Yuri Kuznetsov 423f26cb29 jsdocs 2024-07-16 18:04:52 +03:00
Yuri Kuznetsov fe4679cbc5 cleanup 2024-07-16 17:55:08 +03:00
Yuri Kuznetsov df0c56bd9b kanban ref 2024-07-16 17:53:19 +03:00
Yuri Kuznetsov 269f38e07c deprecation 2024-07-16 17:36:02 +03:00
Yuri Kuznetsov 48c89aec97 kanban ref 2024-07-16 17:35:01 +03:00
Yuri Kuznetsov 2cca4fe429 docs 2024-07-16 12:45:40 +03:00
Yuri Kuznetsov 8672fd1dff ref 2024-07-16 12:31:38 +03:00
Yuri Kuznetsov 755d3b863a dev 2024-07-16 12:15:29 +03:00
Yuri Kuznetsov 453e2bd1a0 ref 2024-07-16 12:10:15 +03:00
Yuri Kuznetsov 9ab35f457c ref 2024-07-16 11:51:07 +03:00
Yuri Kuznetsov 0a60ffefa5 ref 2024-07-16 11:30:17 +03:00
Yuri Kuznetsov 47fad3eb07 docs 2024-07-16 11:25:33 +03:00
Yuri Kuznetsov 7cca2353d8 system time zone 2024-07-16 11:07:45 +03:00
Yuri Kuznetsov 089c8d56f8 Merge branch 'fix' 2024-07-15 23:39:19 +03:00
Yuri Kuznetsov 17c9379c15 fix dynamic logic date time zone 2024-07-15 23:39:00 +03:00
Yuri Kuznetsov d6d83a209f label fixes 2024-07-15 23:12:43 +03:00
Yuri Kuznetsov 86b77266bb schema 2024-07-15 12:28:27 +03:00
Yuri Kuznetsov 9339082f9b link: set attributes at once 2024-07-15 11:48:05 +03:00
Yuri Kuznetsov bac385545c fix defaults promise wait 2024-07-15 11:25:25 +03:00
Yuri Kuznetsov 3e4b4f2df8 detail mode buttons to the left 2024-07-14 14:50:14 +03:00
Yuri Kuznetsov 990406889b app param error log 2024-07-12 10:33:48 +03:00
Yuri Kuznetsov 487d8dc909 custom layout in another module 2024-07-12 10:17:21 +03:00
Yuri Kuznetsov 4945e19fdf docs 2024-07-11 18:55:32 +03:00
Yuri Kuznetsov 0eecaf3d5a select related entityType param 2024-07-11 18:21:02 +03:00
Yuri Kuznetsov 337dd67c36 fix 2024-07-11 18:04:04 +03:00
Yuri Kuznetsov e8f0d38554 panel actions acl race condition fix 2024-07-11 18:00:21 +03:00
Yuri Kuznetsov e7904b976b schema 2024-07-11 13:27:50 +03:00
Yuri Kuznetsov 2360b75f97 panel actions 2024-07-11 13:22:30 +03:00
Yuri Kuznetsov 785c3a8545 link multiple translate empty role 2024-07-10 19:08:09 +03:00
Yuri Kuznetsov 1d1fccaed9 user only me filter 2024-07-10 12:59:13 +03:00
Yuri Kuznetsov fb921bb023 Merge branch 'fix' 2024-07-10 11:43:34 +03:00
Yuri Kuznetsov 0ffe39cec8 8.3.5 2024-07-10 11:04:51 +03:00
Yuri Kuznetsov 21034bfeb2 acl scope data resolve boolean to true if not false 2024-07-09 16:25:44 +03:00
Yuri Kuznetsov 94188f4256 ref 2024-07-09 15:15:08 +03:00
Yuri Kuznetsov 20f6d67f40 Merge branch 'master' of https://github.com/espocrm/espocrm 2024-07-09 15:07:34 +03:00
Yuri Kuznetsov a3c289aee2 model defaults preparator 2024-07-09 15:04:06 +03:00
Yuri Kuznetsov e56121bc18 ref 2024-07-09 14:25:56 +03:00
Arkadiy Asuratov 5b90d4c3f3 fix typos in databasePlatforms.json schema
* Updated descriptions for pre- and post-rebuild actions
2024-07-09 13:25:41 +03:00
Yuri Kuznetsov f69eed63d7 acl resolve foreign to boolean 2024-07-09 13:11:56 +03:00
Yuri Kuznetsov 06c173486e collection parentModel 2024-07-09 07:56:27 +03:00
Yuri Kuznetsov 32f1bfb1c6 model sync event option 2024-07-09 07:01:28 +03:00
Yuri Kuznetsov 68fee2ec9f fix msg 2024-07-08 22:34:08 +03:00
Yuri Kuznetsov d15ab2df31 jsdoc 2024-07-08 22:29:31 +03:00
Yuri Kuznetsov cb7f87a3f1 archive email require import access 2024-07-08 22:18:15 +03:00
Yuri Kuznetsov 6783331aab email: user massUpdateDisabled 2024-07-08 22:11:58 +03:00
Yuri Kuznetsov 88d4b6f27c Merge branch 'fix' 2024-07-08 22:03:12 +03:00
Yuri Kuznetsov 3347b7fba8 email from address check 2024-07-08 18:43:32 +03:00
Yuri Kuznetsov cff703db05 list rebuild 2024-07-08 16:46:26 +03:00
Yuri Kuznetsov 16ba6ce7cf settings helper injected 2024-07-08 16:34:55 +03:00
Yuri Kuznetsov d4bda1fa9d panel heading text 2024-07-08 14:25:30 +03:00
Yuri Kuznetsov 06b5100e87 list update-total event 2024-07-08 14:11:19 +03:00
Yuri Kuznetsov f1a3cd397a checkbox disable 2024-07-08 13:25:38 +03:00
Yuri Kuznetsov 2481e1a652 cf 2024-07-08 13:01:32 +03:00
Yuri Kuznetsov e32ad76590 cleanup 2024-07-08 12:44:43 +03:00
Yuri Kuznetsov 81f1374f55 force sticky bar param 2024-07-08 11:58:20 +03:00
Yuri Kuznetsov d3fd314e35 list sticky bar edge 2024-07-08 08:56:46 +03:00
Yuri Kuznetsov 20b1b06d5f mass action no aclScope fix 2024-07-07 19:45:29 +03:00
Yuri Kuznetsov a364ae1923 massUpdateDisabled in entityDefs fields 2024-07-07 19:00:47 +03:00
Yuri Kuznetsov bb2ce37a38 ref 2024-07-07 18:47:55 +03:00
Yuri Kuznetsov fd092a3eb1 group index -100 2024-07-07 15:26:08 +03:00
Yuri Kuznetsov fb3bdde2c3 link create with name 2024-07-07 13:21:59 +03:00
Yuri Kuznetsov 66623c02e2 rerender row actions on model change 2024-07-07 13:16:20 +03:00
Yuri Kuznetsov 22fded93fb docs 2024-07-07 11:54:57 +03:00
Yuri Kuznetsov 6da20c6f86 modal view related entityType option 2024-07-07 09:50:23 +03:00
Yuri Kuznetsov 34834b2d5c css class panel-actions-container-left 2024-07-06 19:21:50 +03:00
Yuri Kuznetsov c971304b03 array keepItems param 2024-07-06 16:13:11 +03:00
Yuri Kuznetsov 6c7d424349 removeMassAction public 2024-07-06 10:51:36 +03:00
Yuri Kuznetsov f8e43a3694 fix accounts field 2024-07-06 10:07:09 +03:00
Yuri Kuznetsov 17dddbc248 ref 2024-07-06 09:57:43 +03:00
Yuri Kuznetsov 2246ab0cfd select primary id 2024-07-06 09:57:34 +03:00
Yuri Kuznetsov a42f2cbe3a dynamic logic schema fix 2024-07-06 09:45:00 +03:00
Yuri Kuznetsov ad4c039b4a link multiple html fix 2024-07-06 09:38:45 +03:00
Yuri Kuznetsov 2638fdb884 link-multiple-with-columns list text color 2024-07-06 09:23:46 +03:00
Yuri Kuznetsov c0cfe8a36f cs 2024-07-06 09:21:12 +03:00
Yuri Kuznetsov b9ab872ccd autocomplete user-select none 2024-07-06 09:16:58 +03:00
Yuri Kuznetsov 018b0b46aa fix label manager options 2024-07-06 09:13:39 +03:00
Yuri Kuznetsov 7bcd347f2d link multiple id autocomple conflict fix 2024-07-05 19:32:13 +03:00
Yuri Kuznetsov a6db71957a input-text-block 2024-07-05 19:05:50 +03:00
Yuri Kuznetsov 1a5df659cf date field after/before in params 2024-07-05 18:43:58 +03:00
Yuri Kuznetsov 2219f52140 id field view 2024-07-05 12:58:55 +03:00
Yuri Kuznetsov 78dde9c7a1 record helper in modal record 2024-07-04 17:50:31 +03:00
Yuri Kuznetsov 3f0e2a242d Merge branch 'fix' 2024-07-04 09:21:04 +03:00
Yuri Kuznetsov 64aebdde6b icon color fix 2024-07-04 09:20:54 +03:00
Arkadiy Asuratov 24f6db674f suggest toTimestamp over getTimestamp 2024-07-03 18:45:55 +03:00
Arkadiy Asuratov bfc4fb7ca8 suggest toTimestamp over getTimestamp 2024-07-03 18:45:55 +03:00
Yuri Kuznetsov d46945dd2e change mode 2024-07-03 17:00:00 +03:00
Yuri Kuznetsov 51130d1aef fix 2024-07-03 16:33:43 +03:00
Yuri Kuznetsov 6eb71a789e foreign check 2024-07-03 12:06:26 +03:00
Yuri Kuznetsov 9c77169e6c foreign allow delete for admin if no record 2024-07-03 11:43:38 +03:00
Yuri Kuznetsov 26f1218240 duplicate source ID in save options 2024-07-02 19:14:46 +03:00
Yuri Kuznetsov 8b09a81237 Merge branch 'fix' 2024-07-01 16:45:19 +03:00
Yuri Kuznetsov f3ee5c654b 8.3.4 2024-07-01 16:35:35 +03:00
Yuri Kuznetsov 19c8fe9ac5 ref 2024-07-01 16:33:15 +03:00
Yuri Kuznetsov 81f45d5679 merge 2024-07-01 16:27:08 +03:00
Yuri Kuznetsov 1a413cb54e check failed code attempts in a separate hook 2024-07-01 16:23:37 +03:00
Yuri Kuznetsov 3ab2ffee3c back to edit after duplicate cancel 2024-06-30 10:56:42 +03:00
Yuri Kuznetsov 53a481622a address country duplicate check 2024-06-30 09:58:49 +03:00
Yuri Kuznetsov 7d72a7ff71 ref 2024-06-29 19:45:32 +03:00
Yuri Kuznetsov 314cc7f4c2 load empty link multiple names 2024-06-29 19:31:51 +03:00
Yuri Kuznetsov df1228f720 ref 2024-06-29 13:04:52 +03:00
Yuri Kuznetsov bbd071221a fix 2024-06-29 13:04:48 +03:00
Yuri Kuznetsov 9235a3cf79 unset data 2024-06-29 12:12:42 +03:00
Yuri Kuznetsov 75c966e4bb external account disable 2024-06-29 11:52:29 +03:00
Yuri Kuznetsov c298f5ec9a cleanup 2024-06-29 10:43:58 +03:00
Yuri Kuznetsov 94986d8835 ui fix 2024-06-29 10:28:42 +03:00
Yuri Kuznetsov ece8405b33 campaign unsubscribe change 2024-06-29 10:14:17 +03:00
Yuri Kuznetsov 0d2d708ba8 mass email post unsubscribe 2024-06-28 20:13:10 +03:00
Yuri Kuznetsov ef31f7ba08 Merge branch 'fix' 2024-06-28 19:21:07 +03:00
Yuri Kuznetsov 41bcaf50c4 fix attachment-multiple render 2024-06-28 18:55:21 +03:00
Yuri Kuznetsov dcd3fa0fc8 ref 2024-06-28 16:52:05 +03:00
Yuri Kuznetsov b48b9683ab comments 2024-06-28 11:15:59 +03:00
Yuri Kuznetsov 2548f396ef ref 2024-06-28 11:09:53 +03:00
Yuri Kuznetsov 0122b99a4b ouath timeout 2024-06-28 10:16:09 +03:00
Yuri Kuznetsov fb747d3f65 ref 2024-06-28 09:55:36 +03:00
Yuri Kuznetsov 41cb0de44e ref 2024-06-28 09:35:59 +03:00
Yuri Kuznetsov f7442be97b cs 2024-06-28 09:19:10 +03:00
Yuri Kuznetsov 20ccacddf3 ref 2024-06-28 09:18:07 +03:00
Yuri Kuznetsov 1ce56bb522 event date start colors 2024-06-27 17:15:02 +03:00
Yuri Kuznetsov f2330b9a51 date field style 2024-06-27 16:29:02 +03:00
Yuri Kuznetsov 0346a0023e Merge branch 'fix' 2024-06-27 16:04:54 +03:00
Yuri Kuznetsov bc7d9443b1 8.3.3 2024-06-27 15:54:59 +03:00
Yuri Kuznetsov 8188dc065b fix row actions returning undefined 2024-06-27 15:29:30 +03:00
Yuri Kuznetsov a2025d0a89 fix props not initiated 2024-06-27 15:17:04 +03:00
Yuri Kuznetsov c46933f427 Merge branch 'fix' 2024-06-27 11:53:23 +03:00
Yuri Kuznetsov 1d31637c2e migrate: rebuild before each script 2024-06-27 11:53:13 +03:00
Yuri Kuznetsov e26026c9ad migrate: rebuild before each script 2024-06-27 11:49:36 +03:00
Yuri Kuznetsov f9e4d1a953 cleanup 2024-06-27 10:43:50 +03:00
Yuri Kuznetsov 6f00a6b2e7 2fa code attempts period separate param 2024-06-27 10:34:55 +03:00
Yuri Kuznetsov a89860dc52 ref 2024-06-27 10:24:12 +03:00
Yuri Kuznetsov 626c23b1b5 ref 2024-06-27 10:01:45 +03:00
Yuri Kuznetsov 7513d05451 hide menu items in edit mode 2024-06-27 08:52:45 +03:00
Yuri Kuznetsov 5e7aabc46c ref, convert lead button improvement 2024-06-27 08:34:38 +03:00
Yuri Kuznetsov 740baffeb4 convert lead use record service 2024-06-27 08:26:56 +03:00
Yuri Kuznetsov 2ba808c371 auth limit denial reason check 2024-06-26 21:54:15 +03:00
Yuri Kuznetsov 8c7f9f43e4 convert lead require acl create 2024-06-26 16:42:16 +03:00
Yuri Kuznetsov 2df98585f9 lead convert: ability to select account 2024-06-26 16:38:27 +03:00
Yuri Kuznetsov 9d4266bed0 ref 2024-06-26 16:26:39 +03:00
Yuri Kuznetsov cb313cd7ef ref 2024-06-26 14:29:10 +03:00
Yuri Kuznetsov ce54d516e9 Merge branch 'fix' 2024-06-26 13:51:29 +03:00
Yuri Kuznetsov 6bce395daf fix dropdown empty 2024-06-26 13:51:19 +03:00
Yuri Kuznetsov b634daca6e cs 2024-06-26 13:33:59 +03:00
Yuri Kuznetsov 338e0bb9d4 deleteId param 2024-06-26 13:27:20 +03:00
Yuri Kuznetsov cc576a6af8 add user utility fields 2024-06-26 12:33:15 +03:00
Yuri Kuznetsov cbb0159d27 userNameRegularExpression readonly 2024-06-26 12:22:04 +03:00
Yuri Kuznetsov 515b43614b sanitizer lower case 2024-06-26 12:20:29 +03:00
Yuri Kuznetsov 736d23fa6d inline edit shortcut do not reset 2024-06-26 08:40:53 +03:00
Yuri Kuznetsov 7a096cdde4 Merge branch 'fix' 2024-06-26 08:05:49 +03:00
Yuri Kuznetsov 5b0787474e 8.3.2 2024-06-26 07:53:49 +03:00
Yuri Kuznetsov 8c87f20374 comment 2024-06-26 07:50:19 +03:00
Yuri Kuznetsov ba35115a48 inline edit: revert initial attributes on error 2024-06-26 07:44:44 +03:00
Yuri Kuznetsov 069010d0fe log opened only for system user 2024-06-26 07:22:09 +03:00
Yuri Kuznetsov fe5878fd99 2fa auth log records on fail 2024-06-25 20:39:44 +03:00
Yuri Kuznetsov ee37960259 mass action show/hide 2024-06-25 16:22:33 +03:00
Yuri Kuznetsov 3ce8fae228 cs ref 2024-06-25 15:37:00 +03:00
Yuri Kuznetsov 13ebc558e9 email dd item group index change 2024-06-25 15:03:53 +03:00
Yuri Kuznetsov 3ae342c275 mass actions groups 2024-06-25 15:00:25 +03:00
Yuri Kuznetsov a283305c7b fix test 2024-06-25 14:05:29 +03:00
Yuri Kuznetsov 839ceea142 root api endpoint fix type 2024-06-25 08:35:56 +03:00
Yuri Kuznetsov a6c698588c update bullbone 2024-06-24 18:59:23 +03:00
Yuri Kuznetsov 3007976506 fix test 2024-06-24 13:49:54 +03:00
Yuri Kuznetsov 8189f0eb2f wysiwyg: don't call getValueForDisplay 2024-06-24 13:27:42 +03:00
Yuri Kuznetsov 248063f327 activities, prepare for output 2024-06-24 13:23:07 +03:00
Yuri Kuznetsov 3a76807a2b parent field in activities and other dashlets 2024-06-24 13:12:29 +03:00
Yuri Kuznetsov 6e6d3e15ea emails archive 2024-06-24 12:44:35 +03:00
Yuri Kuznetsov eee086ef52 Merge branch 'fix' 2024-06-24 11:24:47 +03:00
Yuri Kuznetsov 9cce9d7347 comment 2024-06-24 11:16:45 +03:00
Yuri Kuznetsov 69d0dbbf1c email collapse fix 2024-06-24 11:09:29 +03:00
Yuri Kuznetsov 92695c0c39 email search cc 2024-06-24 10:56:51 +03:00
Yuri Kuznetsov 44346e962c Merge branch 'fix' 2024-06-24 10:54:58 +03:00
Yuri Kuznetsov 68ef9ce4ac disable email field layouts 2024-06-24 10:54:48 +03:00
Yuri Kuznetsov 83a415cb33 Merge branch 'fix' 2024-06-24 10:35:56 +03:00
Yuri Kuznetsov 163cf047e5 8.3.1 2024-06-24 10:25:00 +03:00
Yuri Kuznetsov 02efdf11f5 Merge branch 'fix' 2024-06-23 17:53:09 +03:00
Yuri Kuznetsov cc574afd3d labels 2024-06-23 17:52:57 +03:00
Yuri Kuznetsov 26a0c4b108 ref 2024-06-23 11:55:00 +03:00
Yuri Kuznetsov 77d76fe0ee bg lang 2024-06-23 11:19:19 +03:00
Yuri Kuznetsov caeaf46403 email show quote part 2024-06-23 11:05:47 +03:00
Yuri Kuznetsov c254f5cc0d Merge branch 'fix' 2024-06-23 10:52:27 +03:00
Yuri Kuznetsov e7ab75ec5a link-one fix 2024-06-23 10:47:07 +03:00
Yuri Kuznetsov 53c3f4b4c3 fix 2024-06-23 09:26:55 +03:00
Yuri Kuznetsov 53a12e17f8 Merge branch 'master' of https://github.com/espocrm/espocrm 2024-06-22 19:43:21 +03:00
Yuri Kuznetsov 2ab5489bec eml duplicate check 2024-06-22 19:43:11 +03:00
Yurii Kuznietsov a5c87272b1 Update CONTRIBUTING.md 2024-06-22 19:15:42 +03:00
Yurii Kuznietsov 130bae6a88 Update CONTRIBUTING.md 2024-06-22 15:36:57 +03:00
Yurii Kuznietsov c520a02ca5 Update CONTRIBUTING.md 2024-06-22 15:36:16 +03:00
Yuri Kuznetsov b8d5612d32 ref 2024-06-22 11:19:54 +03:00
Yuri Kuznetsov 6ecf5fcdd0 note avatar style fix 2024-06-22 11:13:23 +03:00
Yuri Kuznetsov 5a93722232 import EML 2024-06-22 09:56:29 +03:00
Yuri Kuznetsov d6035523e2 Merge branch 'fix' 2024-06-22 09:26:49 +03:00
Yuri Kuznetsov ff6983c9f3 fix wysiwyg sticky toolbar position 2024-06-22 09:26:40 +03:00
Yuri Kuznetsov e2673473c5 wysiwyg codeview not limited height 2024-06-22 09:09:42 +03:00
Yuri Kuznetsov e8bf70ab8e wysiwyg fullscreen codeview switch fix 2024-06-22 08:59:04 +03:00
Yuri Kuznetsov f459d5811d wysiwyg height not being changed fix 2024-06-22 08:45:10 +03:00
Yuri Kuznetsov 8b49e72f2b Merge branch 'fix' 2024-06-21 22:12:19 +03:00
Yuri Kuznetsov 53bf9b024a address field: support list-link template 2024-06-21 22:12:04 +03:00
Yuri Kuznetsov a1292cf933 navbar order change 2024-06-21 16:55:25 +03:00
Yuri Kuznetsov 5ccfd77669 ref 2024-06-21 16:52:40 +03:00
Yuri Kuznetsov 67a27ec21b Merge branch 'fix' 2024-06-21 16:27:43 +03:00
Yuri Kuznetsov 25aed1a1c4 style fix 2024-06-21 16:17:45 +03:00
Yuri Kuznetsov b1de15339a metadata navbar menu 2024-06-21 15:42:48 +03:00
Yuri Kuznetsov 3f819500d3 navbar item order, gaps 2024-06-21 13:56:06 +03:00
Yuri Kuznetsov 435be717c3 cleanup 2024-06-21 13:41:45 +03:00
Yuri Kuznetsov d2f4fbc59d Merge branch 'fix' 2024-06-21 13:14:47 +03:00
Yuri Kuznetsov 2589801993 css fix 2024-06-21 13:14:40 +03:00
Yuri Kuznetsov 9e0a77588d move navbar items to metadata 2024-06-21 13:06:29 +03:00
Yuri Kuznetsov 5f954c22da fix header dropdown on small screen 2024-06-21 12:41:36 +03:00
Yuri Kuznetsov 423e2ca544 fix favicon metadata path 2024-06-21 12:04:11 +03:00
Yuri Kuznetsov d033b26e57 Merge branch 'fix' 2024-06-21 09:40:43 +03:00
Yuri Kuznetsov 6176b8770f fulltext hyphen use natural language mode 2024-06-21 09:40:20 +03:00
Yuri Kuznetsov cbced73f6e history layout change 2024-06-20 22:03:43 +03:00
Yuri Kuznetsov 9168dd69f2 orm: mapper ref, fix wildcard in expression 2024-06-20 17:45:44 +03:00
Yuri Kuznetsov c69fc7f2c9 orm mapper: deleted check 2024-06-20 16:39:10 +03:00
Yuri Kuznetsov faebc13757 Merge branch 'fix' 2024-06-20 15:42:11 +03:00
Yuri Kuznetsov 8ab7452859 fix kanban fetch 2024-06-20 15:42:03 +03:00
Yuri Kuznetsov bd6e0023c3 kanban column show/hide 2024-06-20 13:01:50 +03:00
Yuri Kuznetsov 5f00c85882 cs 2024-06-20 11:48:37 +03:00
Yuri Kuznetsov 6c8cffeb2a nowrap 2024-06-20 08:38:21 +03:00
Yuri Kuznetsov 683eb5a491 Merge branch 'master' into version/8.4 2024-06-20 08:25:23 +03:00
Yuri Kuznetsov 07035bf8bf undo avatar 2024-06-20 08:19:34 +03:00
Yuri Kuznetsov 9e8df41174 check set held 2024-06-19 21:46:36 +03:00
Yuri Kuznetsov 64736349f0 ref 2024-06-19 21:44:15 +03:00
Yuri Kuznetsov 71f389703d remove action fix 2024-06-19 21:36:35 +03:00
Yuri Kuznetsov 669701c6fd Merge branch 'master' into version/8.4 2024-06-19 12:29:07 +03:00
Yuri Kuznetsov 02917943b6 quick view aux 2024-06-19 12:28:44 +03:00
Yuri Kuznetsov 7221963990 stream assign avatar 2024-06-19 12:27:33 +03:00
Yuri Kuznetsov 062043d5e1 Merge branch 'master' into version/8.4 2024-06-19 12:23:58 +03:00
Yuri Kuznetsov acf1833d9f fix tooltip 2024-06-19 11:54:13 +03:00
Yuri Kuznetsov 9c45902213 stream notes quick view aux 2024-06-19 08:40:56 +03:00
Yuri Kuznetsov f9674bd60c field view validation functions 2024-06-18 12:10:55 +03:00
Yuri Kuznetsov 831d840cc5 field view validation functions 2024-06-18 12:08:39 +03:00
Yuri Kuznetsov adc3df5144 Merge branch 'master' into version/8.4 2024-06-18 11:34:06 +03:00
Yuri Kuznetsov 3f6f718cd9 schema 2024-06-18 11:30:17 +03:00
Yuri Kuznetsov c35b5c5aa5 label 2024-06-18 11:29:01 +03:00
Yuri Kuznetsov 0050f44a8a lang 2024-06-18 11:08:44 +03:00
dependabot[bot] f86479afdc Bump ws from 8.13.0 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 11:00:39 +03:00
Yuri Kuznetsov f4cbb5e56a avatar color, use read only state 2024-06-18 09:03:46 +03:00
Yuri Kuznetsov 6c8e9b129a avatar color attribute in avatar field 2024-06-18 08:54:05 +03:00
Yuri Kuznetsov c033cb171e avatar color combined field 2024-06-17 18:48:27 +03:00
Yuri Kuznetsov bdf7d56e0c phone validation ref 2024-06-17 17:13:59 +03:00
Yuri Kuznetsov 3e7326f605 ref 2024-06-17 16:56:13 +03:00
Yuri Kuznetsov 61e51bfb31 ref 2024-06-17 16:54:21 +03:00
Yuri Kuznetsov c35d934ba7 import array, trim 2024-06-17 13:23:04 +03:00
Yuri Kuznetsov 80fa391daa css fix 2024-06-17 12:51:28 +03:00
Yuri Kuznetsov 1092b17a13 orm mapper: check deleted when update 2024-06-17 12:50:10 +03:00
Yuri Kuznetsov 1de6568918 v 2024-06-17 09:09:27 +03:00
Yuri Kuznetsov ee7c7046ac wysiwyg escape insert link 2024-06-16 10:38:15 +03:00
Yuri Kuznetsov 19638dd649 activities panel update-all 2024-06-15 16:14:16 +03:00
Yuri Kuznetsov df30678484 css fix 2024-06-14 16:58:22 +03:00
dependabot[bot] b05697d874 Bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 23:10:31 +03:00
Yuri Kuznetsov 91177fc0d2 schema 2024-06-12 11:58:28 +03:00
Yuri Kuznetsov e56c64dba4 schema 2024-06-12 09:15:35 +03:00
Yuri Kuznetsov 7ecc0dc6a9 upcoming activities order impr 2024-06-10 14:50:59 +03:00
Yuri Kuznetsov 808e2f8788 ref 2024-06-10 14:34:38 +03:00
Yuri Kuznetsov 7682539114 fix submit reminders 2024-06-10 12:15:29 +03:00
Yuri Kuznetsov 890649e46b detail modes 2024-06-10 11:02:29 +03:00
Yuri Kuznetsov 33d710d265 Merge branch 'master' into version/8.4 2024-06-10 09:49:37 +03:00
Yuri Kuznetsov 0558739e67 link multiple primary fix 2024-06-10 09:16:11 +03:00
Yuri Kuznetsov 552983ca33 ref 2024-06-09 18:33:14 +03:00
Yuri Kuznetsov d328872479 ref 2024-06-09 18:28:57 +03:00
Yuri Kuznetsov 6cee542972 change todo 2024-06-08 21:16:11 +03:00
Yuri Kuznetsov afb77424d4 array field: guard null item 2024-06-08 16:09:03 +03:00
Yuri Kuznetsov c7465970bd viewModeIconClassMap 2024-06-08 12:21:00 +03:00
Yuri Kuznetsov 4f6ae321b9 schema 2024-06-08 12:13:37 +03:00
Yuri Kuznetsov b92970992f ref 2024-06-08 11:50:46 +03:00
Yuri Kuznetsov 4923984e2d cleanup 2024-06-08 11:48:53 +03:00
Yuri Kuznetsov 071fb20f7b email insert data load additional fields 2024-06-08 09:51:16 +03:00
Yuri Kuznetsov 3e7d0f23c8 Merge branch 'fix' 2024-06-07 14:44:42 +03:00
Yuri Kuznetsov 268009e5f6 8.2.5 2024-06-07 14:35:06 +03:00
Yuri Kuznetsov 573d810d37 color changes 2024-06-06 20:58:51 +03:00
Yuri Kuznetsov b3f3226f55 metadata additional builders 2024-06-06 19:32:15 +03:00
Yuri Kuznetsov 511b7b0d9d Merge branch 'fix' 2024-06-06 13:58:48 +03:00
Yuri Kuznetsov 3e54b58c8c formula parser assign operator fix 2024-06-06 13:57:46 +03:00
Yuri Kuznetsov 92467afad3 formula parser assign operator fix 2024-06-06 13:51:57 +03:00
Yuri Kuznetsov a1c6004c4f user tabs fix 2024-06-06 11:29:17 +03:00
Yuri Kuznetsov 0d8943d86a cs 2024-06-06 11:17:00 +03:00
Yuri Kuznetsov 07ca2b6ceb user layout detail small change 2024-06-06 11:09:31 +03:00
Yuri Kuznetsov e019de24cc fieldNotMatchingPattern$phoneNumberLoose 2024-06-05 12:05:57 +03:00
Yuri Kuznetsov 7b417313a2 reminder validator ref 2024-06-04 20:50:48 +03:00
Yuri Kuznetsov cb6777d19b fix notification css 2024-06-04 20:38:31 +03:00
Yuri Kuznetsov 2790834c62 fix notification selector 2024-06-04 20:29:17 +03:00
Yuri Kuznetsov 9162b61a3f dynamic logic datetime second granuality 2024-06-04 12:06:53 +03:00
Yuri Kuznetsov 8488afb6f6 logo changes 2024-06-03 13:47:46 +03:00
Yuri Kuznetsov 1b518f4b6f style fix 2024-06-03 13:43:26 +03:00
Yuri Kuznetsov 92bad5240b calendar task fix 2024-06-03 13:40:29 +03:00
Yuri Kuznetsov 5f70d1b408 sent folder encoding 2024-06-03 11:27:42 +03:00
Yuri Kuznetsov 0941bd440e comment 2024-06-03 11:12:44 +03:00
Yuri Kuznetsov 2fabf4bfe1 EntityProvider getByClassName 2024-05-31 09:50:21 +03:00
Yurii Kuznietsov f9e13e8093 Update README.md 2024-05-30 20:54:11 +03:00
Yurii Kuznietsov d1f0fd4fb8 Update README.md 2024-05-30 20:53:41 +03:00
Yurii Kuznietsov 7c9ae7caa4 Update README.md 2024-05-30 20:01:09 +03:00
Yurii Kuznietsov 2adcab4417 Update README.md 2024-05-30 19:53:53 +03:00
Yurii Kuznietsov 2fd367cd7d Update README.md 2024-05-30 19:51:17 +03:00
Yurii Kuznietsov 82c74c23f9 Update README.md 2024-05-30 19:47:42 +03:00
Yurii Kuznietsov 9de57ba4b2 Update README.md 2024-05-30 19:41:22 +03:00
Yurii Kuznietsov 53d544a6d5 Update README.md 2024-05-30 19:40:26 +03:00
Yurii Kuznietsov 5f550f38f9 Update README.md 2024-05-30 19:39:56 +03:00
Yurii Kuznietsov 63a1c0be66 Update README.md 2024-05-30 19:36:49 +03:00
Yuri Kuznetsov a43903dfd2 task reminders 2024-05-30 09:34:54 +03:00
Yuri Kuznetsov ce369c774b ref 2024-05-30 09:34:54 +03:00
Yurii Kuznietsov 971543ab02 Update README.md 2024-05-29 21:51:00 +03:00
Yuri Kuznetsov bf8b9a7e16 sakura color changes 2024-05-29 14:15:23 +03:00
Yuri Kuznetsov d727cea9ee navbar color changes 2024-05-29 14:06:48 +03:00
Yuri Kuznetsov 373e05d219 navbar hover bg 2024-05-29 14:03:41 +03:00
Yuri Kuznetsov 8fa5cf4af1 color 2024-05-29 13:57:29 +03:00
Yuri Kuznetsov 776ae3ac9d radius change 2024-05-29 12:14:36 +03:00
Yuri Kuznetsov f3d9f93564 espo theme change 2024-05-29 12:13:34 +03:00
Yuri Kuznetsov d32995df9b hazyblue changes 2024-05-29 12:06:12 +03:00
Yuri Kuznetsov 6c8e5b2c92 calls scheduler panel 2024-05-29 11:54:39 +03:00
Yuri Kuznetsov b44e536e35 logo espo color 2024-05-29 10:32:55 +03:00
Yuri Kuznetsov 8e9045352d color change 2024-05-27 17:06:48 +03:00
Yuri Kuznetsov 97499626db links no spell check 2024-05-27 15:38:31 +03:00
Yuri Kuznetsov 65cf99faad color change 2024-05-27 15:23:41 +03:00
Yuri Kuznetsov 5719f29262 table-panel border radius fix 2024-05-27 10:45:44 +03:00
Yuri Kuznetsov 06811d9fcc link manager: remove dynamic logic 2024-05-27 10:18:48 +03:00
Yuri Kuznetsov 9000dba6fd default team read only for non admins 2024-05-26 10:12:24 +03:00
Yuri Kuznetsov b8734f68da ref 2024-05-24 17:47:29 +03:00
Yuri Kuznetsov a6eb683770 logo-espo 2024-05-24 16:22:32 +03:00
Yuri Kuznetsov 00a8c7326d calendar no select 2024-05-24 15:30:52 +03:00
Yuri Kuznetsov 8faa5b91e2 color fixes 2024-05-24 14:21:39 +03:00
Yuri Kuznetsov afeeba80f7 fix css 2024-05-24 14:16:44 +03:00
Yuri Kuznetsov b6daa5accb espo theme colors change 2024-05-23 18:15:48 +03:00
Yuri Kuznetsov 7bf5c9ba11 color change 2024-05-23 13:00:18 +03:00
Yuri Kuznetsov 2433da0db7 theme changes 2024-05-22 19:50:40 +03:00
Yuri Kuznetsov b820c880a7 theme changes 2024-05-22 16:38:28 +03:00
Yuri Kuznetsov c7c31ee73a theme change 2024-05-22 16:13:18 +03:00
Yuri Kuznetsov 18ec05f63e color change 2024-05-22 16:02:14 +03:00
Yuri Kuznetsov cf42c312cf fix style 2024-05-22 10:20:49 +03:00
Yuri Kuznetsov d76bb5677b color fix 2024-05-22 10:12:02 +03:00
Yuri Kuznetsov 9afaf54dea theme changes 2024-05-22 09:43:41 +03:00
Yuri Kuznetsov 99490fdf4c theme changes 2024-05-21 18:59:14 +03:00
Yuri Kuznetsov 244edbbcac cleanup 2024-05-21 14:59:54 +03:00
Yuri Kuznetsov 2fab584c60 color changes 2024-05-21 14:51:39 +03:00
Yuri Kuznetsov 9d797ae17a fix color 2024-05-21 14:43:44 +03:00
Yuri Kuznetsov 15860096d3 rename subscription table 2024-05-21 14:28:09 +03:00
Yuri Kuznetsov c0ac579b7f ref 2024-05-21 12:26:22 +03:00
Yuri Kuznetsov 50d5280d2c button style changes 2024-05-21 10:47:22 +03:00
Yuri Kuznetsov b1c5526286 btn color change 2024-05-21 10:41:48 +03:00
Yuri Kuznetsov 384902f349 violet theme button style change 2024-05-21 10:08:10 +03:00
Yuri Kuznetsov 86e75a4d47 color fix 2024-05-21 09:56:58 +03:00
Yuri Kuznetsov 0401f0cce6 fix overlapping 2024-05-21 09:52:48 +03:00
Yuri Kuznetsov 5b54f1b579 color change 2024-05-20 19:33:02 +03:00
Yuri Kuznetsov 62370b6c8d Merge branch 'fix' 2024-05-20 11:41:43 +03:00
Yuri Kuznetsov edc9d00be3 calendar all day fix 2024-05-20 11:41:31 +03:00
Yuri Kuznetsov 73d4250daa typo 2024-05-18 16:48:58 +03:00
Yuri Kuznetsov aa052560bf cs 2024-05-18 16:47:18 +03:00
Yuri Kuznetsov b35c2ca97f deprecation 2024-05-18 16:46:48 +03:00
Yuri Kuznetsov d2946cacfa fix stream scroll 2024-05-18 13:55:49 +03:00
Yuri Kuznetsov eaaceb74bd stored view impr 2024-05-18 11:47:18 +03:00
Yuri Kuznetsov 2138591b72 fix 2024-05-18 11:33:46 +03:00
Yuri Kuznetsov 3583b586c2 ref 2024-05-18 11:11:05 +03:00
Yuri Kuznetsov 965e5149f3 ref 2024-05-18 10:38:17 +03:00
Yuri Kuznetsov be899bc0e2 reset scroll 2024-05-18 10:33:15 +03:00
Yuri Kuznetsov e23e8854d7 cs 2024-05-18 09:59:14 +03:00
Yuri Kuznetsov 2b977e5456 record dashlets display records int 2024-05-18 09:38:38 +03:00
Yuri Kuznetsov 1c7f65db1a password settings layout change 2024-05-17 16:40:33 +03:00
Yuri Kuznetsov cdda1e0514 typo 2024-05-17 15:00:25 +03:00
Yuri Kuznetsov 9fc955d7b5 portal auth token control 2024-05-17 14:49:39 +03:00
Yuri Kuznetsov 0372374e1f convert lead ui impr 2024-05-17 13:05:48 +03:00
Yuri Kuznetsov c615f0d8db message 2024-05-17 12:52:57 +03:00
Yuri Kuznetsov f4b9b3fd81 ref 2024-05-17 12:52:50 +03:00
Yuri Kuznetsov da06eb9426 messages 2024-05-17 12:14:46 +03:00
Yuri Kuznetsov 2a3f3f2d04 update favicon 2024-05-17 11:28:48 +03:00
Yuri Kuznetsov 19a8535dbe favicon png 2024-05-17 11:23:28 +03:00
Yuri Kuznetsov 363a1c1b06 favicon 2024-05-17 09:48:29 +03:00
Yuri Kuznetsov 5c2b3f707b fix mail link surrounded by quotes 2024-05-17 09:27:04 +03:00
Yuri Kuznetsov 73f88bc097 fix messages 2024-05-16 16:00:20 +03:00
Yuri Kuznetsov 7ebcc6c71a kb active status list 2024-05-16 14:51:55 +03:00
Yuri Kuznetsov af3baef0cb campaign disable custom options 2024-05-16 14:41:46 +03:00
Yuri Kuznetsov 14ea8886f6 document active statuses 2024-05-16 13:57:20 +03:00
Yuri Kuznetsov 852977d5db schema 2024-05-16 13:50:30 +03:00
Yuri Kuznetsov 4178406453 ref 2024-05-16 13:49:09 +03:00
Yuri Kuznetsov 149649be09 fix 2024-05-16 12:58:15 +03:00
Yuri Kuznetsov 2a17155f96 force assignment notifications 2024-05-16 12:48:46 +03:00
Yuri Kuznetsov d9488ba71c ref 2024-05-16 12:42:43 +03:00
Yuri Kuznetsov 275c3aa492 remove addressCountryList param 2024-05-15 14:56:22 +03:00
Yuri Kuznetsov 9f5975eb5b autocomplete in modal fix 2024-05-15 14:52:44 +03:00
Yuri Kuznetsov a1d5174372 address country list 2024-05-15 14:12:29 +03:00
Yuri Kuznetsov 547b77423a varchar custom autocomplete lookup function 2024-05-15 12:56:40 +03:00
Yuri Kuznetsov a2c81e5891 orm reportsitory delete from db if no deleted 2024-05-15 10:49:36 +03:00
Yuri Kuznetsov f1070612b4 ref cs 2024-05-15 10:43:17 +03:00
Yuri Kuznetsov c5828a9feb schema 2024-05-15 10:30:10 +03:00
Yuri Kuznetsov 62b2314ff3 address fix params 2024-05-14 14:07:46 +03:00
Yuri Kuznetsov dce9c437bf ref 2024-05-14 11:52:26 +03:00
Yuri Kuznetsov e5a012cdc7 7_2 migration 2024-05-13 12:23:32 +03:00
Yuri Kuznetsov 17f18e36fd migration scripts 2024-05-13 10:56:52 +03:00
Yuri Kuznetsov e99fca0252 group email account exclude from reply 2024-05-13 10:01:50 +03:00
Yuri Kuznetsov 316a865d02 imap notify wait period 2024-05-12 16:28:25 +03:00
Yuri Kuznetsov 0f6049b36f notify when imap not connected 2024-05-12 12:33:58 +03:00
Yuri Kuznetsov 63771d37b3 email mark as read from list view 2024-05-11 13:28:21 +03:00
Yuri Kuznetsov 9e50367303 ref 2024-05-11 13:20:57 +03:00
Yuri Kuznetsov 71b0dfec04 added validation faulure explanations 2024-05-11 10:19:49 +03:00
Yuri Kuznetsov 90c692648d validation failures changes 2024-05-11 10:19:30 +03:00
Yuri Kuznetsov e968424b9d ref 2024-05-11 10:03:11 +03:00
Yuri Kuznetsov ed77c8758c imap error exception 2024-05-10 14:39:27 +03:00
Yuri Kuznetsov caa536f17a fix logging level 2024-05-10 14:05:32 +03:00
Yuri Kuznetsov 7463caf8ee ref 2024-05-10 13:48:22 +03:00
Yuri Kuznetsov d4096b8dfb stream view list modal pagination 2024-05-10 13:24:09 +03:00
Yuri Kuznetsov f73e4f2b47 Merge branch 'fix' 2024-05-10 12:52:40 +03:00
Yuri Kuznetsov fc93a3d029 fix empty template 2024-05-10 12:52:35 +03:00
Yuri Kuznetsov 0bcbfdd223 fix empty template 2024-05-10 12:51:53 +03:00
Yuri Kuznetsov 6b1f8de16a fix typo 2024-05-10 10:56:14 +03:00
Yuri Kuznetsov 64741be18b fix typo 2024-05-10 10:55:26 +03:00
Yuri Kuznetsov 8ad8a42ecd docs 2024-05-10 10:53:10 +03:00
Yuri Kuznetsov ead2d3829b docs 2024-05-10 10:51:12 +03:00
Yuri Kuznetsov 55be65d48c oidc authentication prompt param in UI 2024-05-10 10:17:25 +03:00
Yuri Kuznetsov ecee6e7477 authentication layout change 2024-05-10 10:01:15 +03:00
Yuri Kuznetsov c037870e7e tooltip 2024-05-10 09:53:09 +03:00
Yuri Kuznetsov e86c4a9b6b ip address whitelist 2024-05-09 19:21:19 +03:00
Yuri Kuznetsov 586e28bd26 ref 2024-05-09 17:05:47 +03:00
Yuri Kuznetsov 3ca7cdffcc fix message 2024-05-09 16:39:38 +03:00
Yuri Kuznetsov d36dc4bc1c fix docs 2024-05-09 16:38:32 +03:00
Yuri Kuznetsov ede53970bf ref 2024-05-09 16:37:43 +03:00
Yuri Kuznetsov 0348778bc1 ref 2024-05-09 16:19:48 +03:00
Yuri Kuznetsov 3e2a3597ad schema 2024-05-09 16:02:28 +03:00
Yuri Kuznetsov 1c5afb52b3 schema 2024-05-09 15:32:35 +03:00
Yuri Kuznetsov 8601c8fc24 color changes 2024-05-09 13:00:48 +03:00
Yuri Kuznetsov 5b3b7b583d color fix 2024-05-09 12:10:28 +03:00
Yuri Kuznetsov 9f0827e478 ref 2024-05-09 11:56:59 +03:00
Yuri Kuznetsov a0858acae3 color fix 2024-05-09 11:54:10 +03:00
Yuri Kuznetsov 49a49d6103 cs 2024-05-09 10:51:59 +03:00
Yuri Kuznetsov 7d9d248ab7 Merge branch 'fix' 2024-05-09 10:51:32 +03:00
Yuri Kuznetsov acc0b71a7a fix url decode 2024-05-09 10:50:41 +03:00
Yuri Kuznetsov 1f3a0bb5dd allow tilde in URL 2024-05-09 10:35:24 +03:00
Yuri Kuznetsov c5611a691f link multiple autocomplete fix 2024-05-08 21:19:21 +03:00
Yuri Kuznetsov 72927e34e2 autocomplete fix 2024-05-08 21:02:00 +03:00
Yuri Kuznetsov 6c2a114c47 ref 2024-05-08 12:53:15 +03:00
Yuri Kuznetsov edb5f30ddd Merge branch 'fix' 2024-05-08 11:41:47 +03:00
Yuri Kuznetsov 94881de082 8.2.4 2024-05-08 11:32:01 +03:00
Yuri Kuznetsov ce0baf450e light logo color change 2024-05-08 10:08:55 +03:00
Yuri Kuznetsov 3854141292 do not update pinned collection if the same 2024-05-08 09:33:06 +03:00
Yuri Kuznetsov 152bc76e57 sync pinned on websocket update 2024-05-08 09:28:56 +03:00
Yuri Kuznetsov 6d01717f7e style fix 2024-05-07 23:07:42 +03:00
Yuri Kuznetsov b026ff8066 pinned icon 2024-05-07 23:04:48 +03:00
Yuri Kuznetsov f9270a20d4 pin note check max count > 0 2024-05-07 22:46:15 +03:00
Yuri Kuznetsov 5196343479 pinned node sync more fields 2024-05-07 22:42:02 +03:00
Yuri Kuznetsov 3606051b91 entity manager columns swap 2024-05-07 19:41:23 +03:00
Yuri Kuznetsov 3fc4b487b3 pinned notes 2024-05-07 18:15:52 +03:00
Yuri Kuznetsov 692e0b43e3 ref 2024-05-07 11:38:18 +03:00
Yuri Kuznetsov c273e26cf9 colorpicker style improvements 2024-05-06 17:01:32 +03:00
Yuri Kuznetsov a26a48fac7 wysiwyg cell params 2024-05-06 15:40:37 +03:00
Yuri Kuznetsov 2a42ab8db5 wysiwyg table params 2024-05-06 14:34:54 +03:00
Yuri Kuznetsov 16d66aa642 ref 2024-05-05 10:08:54 +03:00
Yuri Kuznetsov 85d167aad4 Merge branch 'fix' 2024-05-04 23:03:14 +03:00
Yuri Kuznetsov cbec1cbbe5 fix parser 2024-05-04 23:00:46 +03:00
Yuri Kuznetsov 1509f8d18f exception levels 2024-05-04 14:57:12 +03:00
Yuri Kuznetsov e6d618f142 job fail critical log 2024-05-04 14:52:06 +03:00
Yuri Kuznetsov 455c51e806 ref 2024-05-04 14:47:39 +03:00
Yuri Kuznetsov d9f553d47f formula error fix 2024-05-04 14:39:31 +03:00
Yuri Kuznetsov 5dc08ecf05 fix formula errors 2024-05-04 14:38:43 +03:00
Yuri Kuznetsov 2d791010dc log previous 2024-05-04 14:38:11 +03:00
Yuri Kuznetsov cc8e2511e0 fix bubbling 2024-05-04 14:26:02 +03:00
Yuri Kuznetsov 92b0af358e fix log messages 2024-05-04 14:09:45 +03:00
Yuri Kuznetsov 9526614a3d fix message 2024-05-04 14:05:23 +03:00
Yuri Kuznetsov 9fca726329 fix legacy 2024-05-04 13:59:48 +03:00
Yuri Kuznetsov 83a9f53fe3 action history record bigint 2024-05-04 13:38:28 +03:00
Yuri Kuznetsov da27b68312 messages 2024-05-04 13:37:44 +03:00
Yuri Kuznetsov d2e90f7853 schema 2024-05-04 13:23:54 +03:00
Yuri Kuznetsov 0f7cd11ffe Merge branch 'f/log' 2024-05-04 13:09:11 +03:00
Yuri Kuznetsov b006349528 app log dev 2024-05-04 13:05:08 +03:00
Yuri Kuznetsov f03637ac64 type fix 2024-05-04 09:29:24 +03:00
Yuri Kuznetsov e0909af3fe app log dev 2024-05-03 18:33:47 +03:00
Yuri Kuznetsov 1ed38e28cd side panel date fields if no by field 2024-05-03 17:35:50 +03:00
Yuri Kuznetsov 567db6b204 linkOnlyNotLinked param 2024-05-03 13:05:17 +03:00
Yuri Kuznetsov 04689b8ed0 user attribute safe 2024-05-03 10:27:22 +03:00
Yuri Kuznetsov c007010a73 bar argument value exception message 2024-05-03 10:05:27 +03:00
Yuri Kuznetsov 498dd5478b ref 2024-05-03 09:52:59 +03:00
Yuri Kuznetsov 4e9e71b1bb userAttribute forbid list 2024-05-02 20:39:13 +03:00
Yuri Kuznetsov 06771f2f3e unsafe functions 2024-05-02 20:05:40 +03:00
Yuri Kuznetsov bafe2dd471 formula base64 functions 2024-05-02 18:39:54 +03:00
Yuri Kuznetsov 4591d8f634 formula acl functions 2024-05-02 18:03:09 +03:00
Yuri Kuznetsov f1e42f931b ref 2024-05-02 13:20:40 +03:00
Yuri Kuznetsov 8cf31f17cb email account active filter 2024-05-02 12:24:57 +03:00
Yuri Kuznetsov 40c8d0063d fill assigned user if read level is own 2024-05-02 10:59:58 +03:00
Yuri Kuznetsov 157f03b38f imap test connection error 2024-05-02 10:26:47 +03:00
Yuri Kuznetsov ffa5cf44ea load parent fields fix 2024-05-02 10:10:12 +03:00
Yuri Kuznetsov cc88ab9290 ref 2024-05-02 10:07:00 +03:00
dependabot[bot] 1a179c2373 Bump ejs from 3.1.8 to 3.1.10
Bumps [ejs](https://github.com/mde/ejs) from 3.1.8 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.8...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 09:08:46 +03:00
Yuri Kuznetsov 066f815d0c dashblet dropdown overflow fix 2024-05-01 13:37:04 +03:00
Yuri Kuznetsov 8078043f3c ref 2024-05-01 13:03:39 +03:00
Yuri Kuznetsov 06de056bb5 fix kanban dropdown overflow 2024-05-01 12:59:33 +03:00
Yuri Kuznetsov 630bdd7885 change start img 2024-04-30 22:15:08 +03:00
Yuri Kuznetsov 847440ad6c change install image 2024-04-30 15:49:51 +03:00
Yuri Kuznetsov 0271deddde fix test 2024-04-30 14:25:46 +03:00
Yuri Kuznetsov 65a385dfcf Merge branch 'fix' 2024-04-30 14:18:11 +03:00
Yuri Kuznetsov 71dd872618 calendar duplicate event fix 2024-04-30 14:15:39 +03:00
Yuri Kuznetsov 8025c1e101 mention frontend fix 2024-04-30 12:02:48 +03:00
Yuri Kuznetsov fe15332531 ref 2024-04-29 19:25:16 +03:00
Yuri Kuznetsov 508699d0aa bool 2024-04-29 19:24:25 +03:00
Yuri Kuznetsov 0465f826f1 fix test 2024-04-29 15:26:21 +03:00
Yuri Kuznetsov f78d38d592 migration script for reminders 2024-04-28 20:09:53 +03:00
Yuri Kuznetsov db7142e4f9 reminded assigned users 2024-04-28 17:34:45 +03:00
Yuri Kuznetsov e1b4fd6bdb reminderMaxCount 2024-04-28 14:43:49 +03:00
Yuri Kuznetsov 483ffb91fa ref 2024-04-28 14:33:23 +03:00
Yuri Kuznetsov 76a5721c72 skip past reminders 2024-04-28 14:27:24 +03:00
Yuri Kuznetsov 27c5bec755 reminders only own user 2024-04-28 14:15:39 +03:00
Yuri Kuznetsov 8e3016e301 rename 2024-04-28 12:37:50 +03:00
Yuri Kuznetsov d93f08b18e reminder type fixes 2024-04-28 12:36:56 +03:00
Yuri Kuznetsov 701abe129b reminder links 2024-04-28 12:31:13 +03:00
Yuri Kuznetsov e585ef0a0d ref 2024-04-28 10:10:53 +03:00
Yuri Kuznetsov beaafccd2a log formatter interpolation. new line 2024-04-28 10:10:41 +03:00
Yuri Kuznetsov cad2e0078a log refactoring 2024-04-27 20:21:42 +03:00
Yuri Kuznetsov 3dc35d0f16 formula log functions 2024-04-27 17:17:22 +03:00
Yuri Kuznetsov 2d73c62936 ref 2024-04-27 12:48:36 +03:00
Yuri Kuznetsov dad5c3724e ref 2024-04-27 12:00:56 +03:00
Yuri Kuznetsov d0f3373515 ref 2024-04-26 13:37:03 +03:00
Yuri Kuznetsov bbe578ce0a ref 2024-04-26 11:54:11 +03:00
Yuri Kuznetsov 51a8a3a302 jsdocs deprecation 2024-04-26 11:25:19 +03:00
Yuri Kuznetsov e3d3cae647 Merge branch 'fix' 2024-04-26 11:09:17 +03:00
Yuri Kuznetsov bfed154feb language load off 2024-04-26 11:01:54 +03:00
Yuri Kuznetsov bbe9281cb0 css fix, border radius 2024-04-25 21:32:30 +03:00
Yuri Kuznetsov b2a6ababd2 note acl query with created at 2024-04-25 16:50:08 +03:00
Yuri Kuznetsov 343ad33a78 noteAclPeriod only admin 2024-04-25 16:35:41 +03:00
Yuri Kuznetsov 0a51e27d57 ref 2024-04-25 16:21:54 +03:00
Yuri Kuznetsov dc1dc5de9b noteAclLimit adminOnly 2024-04-25 16:12:30 +03:00
Yuri Kuznetsov 868aa64e51 ref docs 2024-04-25 16:07:03 +03:00
Yuri Kuznetsov 0a9c0dcb20 fix doc 2024-04-25 16:04:33 +03:00
Yuri Kuznetsov c1855e84a9 ref 2024-04-25 15:43:29 +03:00
Yuri Kuznetsov 4aa4b17c9f ref 2024-04-25 14:42:22 +03:00
Yuri Kuznetsov 689d59df2e ref 2024-04-25 14:26:02 +03:00
Yuri Kuznetsov 6fd55a6c2d quickSearchFullTextAppendWildcard 2024-04-25 13:40:25 +03:00
Yuri Kuznetsov ae141c2415 no distinct 2024-04-25 13:25:13 +03:00
Yuri Kuznetsov ab88abfb5e test filter applier ref and fix 2024-04-25 13:13:56 +03:00
Yuri Kuznetsov 90ab1de10f ref 2024-04-25 11:05:31 +03:00
Yuri Kuznetsov e3bf337a07 calendar restrict drop 2024-04-25 10:47:26 +03:00
Yuri Kuznetsov 69329a87db rename 2024-04-24 13:45:47 +03:00
Yuri Kuznetsov 663eacb962 formula single quote fix 2024-04-24 13:45:24 +03:00
Yuri Kuznetsov 38ce78fced formula fix string double backslash and quote 2024-04-24 13:33:52 +03:00
Yuri Kuznetsov ddf904fa0f formula backslash escaping 2024-04-24 13:22:22 +03:00
Yuri Kuznetsov eba3138d16 formula string backslashes 2024-04-23 21:51:23 +03:00
Yuri Kuznetsov 05227281e7 style fix 2024-04-23 19:08:52 +03:00
Yuri Kuznetsov 16672722d4 has-attachment change 2024-04-23 19:07:00 +03:00
Yuri Kuznetsov 7fcc80025c ref 2024-04-23 18:53:02 +03:00
Yuri Kuznetsov da264fcc71 navbar hide last divider 2024-04-23 18:49:42 +03:00
Yuri Kuznetsov 2b6bf419a1 fix add custom tabs 2024-04-23 18:10:50 +03:00
Yuri Kuznetsov 310f83e9c2 update navbar on preferences 2024-04-23 18:09:49 +03:00
Yuri Kuznetsov 45cdae005a add custom tabs 2024-04-23 17:43:09 +03:00
Yuri Kuznetsov 15b4ce9657 move migration 2024-04-23 17:09:26 +03:00
Yuri Kuznetsov 665dd2f242 mention permission 2024-04-23 16:58:46 +03:00
Yuri Kuznetsov ecde690c3a post field ref 2024-04-23 16:56:57 +03:00
Yuri Kuznetsov 90728dfc18 autocomplete abort last fetch 2024-04-23 16:05:53 +03:00
Yuri Kuznetsov d519318804 fix jsdocs 2024-04-23 15:45:15 +03:00
Yuri Kuznetsov 0d8a5ce5a1 skip full text search if request is too short and no operators 2024-04-23 15:07:39 +03:00
Yuri Kuznetsov 3dc29b1bae fix 2024-04-22 14:42:37 +03:00
Yuri Kuznetsov 0819b69d4a email inbox alias 2024-04-22 13:59:01 +03:00
Yuri Kuznetsov 8ac3d4e90b ref tests 2024-04-22 13:42:05 +03:00
Yuri Kuznetsov a577950cc0 lead capture loadAdditionalFieldsAfterUpdate 2024-04-22 13:29:28 +03:00
Yuri Kuznetsov 3cf6edd051 Merge branch 'fix' 2024-04-22 12:38:47 +03:00
Yuri Kuznetsov 5a19b90b13 fix role empty stream level on ui 2024-04-22 12:38:33 +03:00
Yuri Kuznetsov daa3980122 fix role empty stream level on ui 2024-04-22 12:38:12 +03:00
Yuri Kuznetsov bab460c521 account name audited 2024-04-21 16:38:39 +03:00
Yuri Kuznetsov 64b3f55d7a email filter lower 2024-04-21 14:38:54 +03:00
Yuri Kuznetsov ca053b57c5 orm: custom where value in complex expresssion, fix string expression unescaping 2024-04-21 14:37:40 +03:00
Yuri Kuznetsov a07f6b032a sanitizer suppress list, allow empty attachment 2024-04-20 21:47:38 +03:00
Yuri Kuznetsov ad0fbb577f ref 2024-04-20 21:34:49 +03:00
Yuri Kuznetsov df55323a04 attachment multiple audited 2024-04-20 20:54:48 +03:00
Yuri Kuznetsov a081237b2e link multiple maxCount 2024-04-20 20:50:03 +03:00
Yuri Kuznetsov b604501eba fix 2024-04-20 20:48:15 +03:00
Yuri Kuznetsov b4368862e0 fix readme 2024-04-20 18:06:28 +03:00
Yuri Kuznetsov 81043740dc fix readme 2024-04-20 18:02:24 +03:00
Yuri Kuznetsov b6beb39192 update readme 2024-04-20 18:01:05 +03:00
Yurii Kuznietsov 687f66908d Update feature_request.md 2024-04-20 16:44:36 +03:00
Yuri Kuznetsov a5ef17e06c login view setup handler 2024-04-20 15:42:45 +03:00
Yuri Kuznetsov cb8a43da52 cron/cache admin notifications 2024-04-20 15:28:53 +03:00
Yuri Kuznetsov a575a69704 move 2024-04-20 15:20:18 +03:00
Yuri Kuznetsov 7d6b1d7bcf glass theme style fix 2024-04-20 11:57:44 +03:00
Yuri Kuznetsov 31b875bbdd Merge branch 'fix' 2024-04-20 11:33:33 +03:00
Yuri Kuznetsov 33b0ca8824 fix add dashlet 2024-04-20 11:32:41 +03:00
Yuri Kuznetsov e7d388f55f navbar event off 2024-04-20 11:29:04 +03:00
Yuri Kuznetsov 559ef609e0 navbar resize fix 2024-04-20 11:19:23 +03:00
Yuri Kuznetsov c382cb0e7b npm updates 2024-04-20 10:54:39 +03:00
Yuri Kuznetsov 3912f937bd update summernote 2024-04-20 10:54:02 +03:00
Yuri Kuznetsov 7222cd6436 Merge branch 'fix' 2024-04-20 08:35:44 +03:00
Yuri Kuznetsov 540c58a564 fix add dashlet quick seach 2024-04-20 08:35:16 +03:00
Yuri Kuznetsov 6f7c1f72f6 fix add dashlet quick seach 2024-04-20 08:34:58 +03:00
Yuri Kuznetsov 5bf4ab368d ref 2024-04-19 14:55:49 +03:00
Yuri Kuznetsov 42645a9bc1 permission consts 2024-04-19 14:33:54 +03:00
Yuri Kuznetsov 5be0f5c71e cs 2024-04-19 14:18:51 +03:00
Yuri Kuznetsov f029675856 acl permission consts 2024-04-19 14:18:27 +03:00
Yuri Kuznetsov 3a1f5bec0f default team ui impr 2024-04-19 12:31:48 +03:00
Yuri Kuznetsov 1356e7b9f8 jsdoc 2024-04-19 12:30:19 +03:00
Yuri Kuznetsov ab10b6c036 validate user default team 2024-04-19 12:00:03 +03:00
Yuri Kuznetsov ed0e5112a3 disable layout for avatar fields 2024-04-19 11:46:25 +03:00
Yuri Kuznetsov 46da1bb8a0 permission string fix 2024-04-19 11:42:37 +03:00
Yuri Kuznetsov cd216007af assigned to self and default team if no assignment permission 2024-04-19 11:28:01 +03:00
Yuri Kuznetsov bd96cf9e73 Merge branch 'fix' 2024-04-19 10:42:18 +03:00
Yuri Kuznetsov 67c0be5699 8.2.3 2024-04-19 10:21:05 +03:00
Yuri Kuznetsov 695dc2eb42 record service create: keep new 2024-04-19 09:30:49 +03:00
Yuri Kuznetsov 516bd037e7 jsdoc 2024-04-18 19:46:18 +03:00
Yuri Kuznetsov f122d3d3bb jsdocs 2024-04-18 19:33:00 +03:00
Yuri Kuznetsov e7b64bcc6f jsdocs 2024-04-18 19:24:07 +03:00
Yuri Kuznetsov 3df7349d2b cs ref 2024-04-18 19:14:29 +03:00
Yuri Kuznetsov 47b6471717 jsdoc 2024-04-18 19:12:01 +03:00
Yuri Kuznetsov 95280e8f7b jsdocs 2024-04-18 18:58:17 +03:00
Yuri Kuznetsov 296f73a407 jsdoc 2024-04-18 18:47:29 +03:00
Yuri Kuznetsov 918faa340b jsdoc, cs 2024-04-18 18:38:26 +03:00
Yuri Kuznetsov 4526224ae4 avatar color 2024-04-18 16:50:31 +03:00
Yuri Kuznetsov e35b8e799f colorpicker field change 2024-04-18 16:49:49 +03:00
Yuri Kuznetsov 06fffdf1cf colorpicker change 2024-04-18 16:20:27 +03:00
Yuri Kuznetsov ac133fb257 dynamic logic changes 2024-04-18 15:56:26 +03:00
Yuri Kuznetsov 2ab3274768 formula parser +/- after operator 2024-04-18 14:20:00 +03:00
Yuri Kuznetsov b7f22352ed cs 2024-04-18 12:36:15 +03:00
Yuri Kuznetsov 7873340616 rename Ranges label 2024-04-18 12:00:06 +03:00
Yuri Kuznetsov 546a0440cd isFollowed bool 2024-04-18 11:01:49 +03:00
Yuri Kuznetsov 9783271a1d comment 2024-04-18 11:01:26 +03:00
Yuri Kuznetsov 35ad3177d3 cleanup 2024-04-18 10:47:02 +03:00
Yuri Kuznetsov 06b6be0c9e ref 2024-04-18 10:43:57 +03:00
Yuri Kuznetsov a390d71ef0 complex expr field impr 2024-04-18 10:36:09 +03:00
Yuri Kuznetsov 39dafddb4b field-manager impr 2024-04-18 10:35:59 +03:00
Yuri Kuznetsov 2706f8681f ref, comment 2024-04-18 10:05:07 +03:00
Yuri Kuznetsov 44babbc240 cleanup stars 2024-04-17 16:56:43 +03:00
Yuri Kuznetsov 2fe1403cdb schema 2024-04-17 16:06:51 +03:00
Yuri Kuznetsov 665bfc3649 comment 2024-04-17 16:03:22 +03:00
Yuri Kuznetsov dd3746d435 move to folder header text 2024-04-17 14:30:08 +03:00
Yuri Kuznetsov b881c11672 star limit 2024-04-17 14:19:40 +03:00
Yuri Kuznetsov 2c0370f546 on empty autocomplete promise 2024-04-17 11:51:23 +03:00
Yuri Kuznetsov 6e1b3c64ec starred filter in entity manager list 2024-04-17 10:40:40 +03:00
Yuri Kuznetsov 17c3fe5699 enable stars, schema 2024-04-17 10:27:56 +03:00
Yuri Kuznetsov 8d20ba1ffd stars dev and change 2024-04-17 10:10:22 +03:00
Yuri Kuznetsov 0d124269f0 star button wider 2024-04-17 09:55:24 +03:00
Yuri Kuznetsov 1fcf326ecc btn style fix 2024-04-17 09:21:07 +03:00
Yuri Kuznetsov 76397085a3 star dev 2024-04-16 19:20:59 +03:00
Yuri Kuznetsov 1b4bdfaa12 note email sent when from user 2024-04-16 14:50:45 +03:00
Yuri Kuznetsov 040e6ddeb7 cs, cleanup 2024-04-16 14:30:43 +03:00
Yuri Kuznetsov d148b53d52 schema 2024-04-16 14:11:29 +03:00
Yuri Kuznetsov 90f125567c autcomplete own teams 2024-04-16 14:10:04 +03:00
Yuri Kuznetsov 8cc72d1c7b empty query autocomplete fix, no value setting 2024-04-16 13:39:37 +03:00
Yuri Kuznetsov 747c1bbf12 getEmptyAutocompleteResult ref, fix 2024-04-16 12:51:12 +03:00
Yuri Kuznetsov 22b5f89991 docs fix 2024-04-16 12:45:33 +03:00
Yuri Kuznetsov d19de50f7f Merge branch 'fix' 2024-04-16 12:38:20 +03:00
Yuri Kuznetsov d1dd39bf5a email parent allow autocomplete on empty 2024-04-16 12:38:03 +03:00
Yuri Kuznetsov d07f5b8e18 email parent allow autocomplete on empty 2024-04-16 12:37:33 +03:00
Yuri Kuznetsov 9fa9440d7b cleanup 2024-04-16 10:30:52 +03:00
Yuri Kuznetsov 042b3ae66e do not log exception file/line if created with static 2024-04-16 09:58:59 +03:00
Yuri Kuznetsov c07004faf4 add method 2024-04-15 21:38:57 +03:00
Yuri Kuznetsov b3905eedf4 notification list ux impr 2024-04-15 20:27:14 +03:00
Yuri Kuznetsov 9cffccbe73 ref 2024-04-15 18:03:05 +03:00
Yuri Kuznetsov 43322186b5 acl getPermissionLevel 2024-04-15 18:01:55 +03:00
Yuri Kuznetsov a0ab01a77f ref 2024-04-15 17:57:24 +03:00
Yuri Kuznetsov d7b9b65990 application id in body tag 2024-04-15 16:33:11 +03:00
Yuri Kuznetsov e23a22d259 change app id 2024-04-15 16:28:56 +03:00
Yuri Kuznetsov 5d946a44f6 kanban isMuted 2024-04-15 13:23:41 +03:00
Yuri Kuznetsov 437f12245e date time field style fix 2024-04-15 12:49:59 +03:00
Yuri Kuznetsov b1cefdfbbe datetime input group style fix 2024-04-14 16:08:31 +03:00
Yuri Kuznetsov 857ee7fb98 style fix 2024-04-13 09:56:03 +03:00
Yuri Kuznetsov 3b68d3dd13 css fix 2024-04-13 09:46:12 +03:00
Yuri Kuznetsov 4125b4f9a0 colors 2024-04-11 17:33:03 +03:00
Yuri Kuznetsov 913cad075a Merge branch 'fix' 2024-04-11 17:31:31 +03:00
Yuri Kuznetsov 8a542adb7e calendar update class names 2024-04-11 17:31:14 +03:00
Yuri Kuznetsov 481f352f5a calendar update class names 2024-04-11 17:30:37 +03:00
Yuri Kuznetsov 8ce2c7a40b light theme calendar colors 2024-04-11 17:19:20 +03:00
Yuri Kuznetsov 8dda7cf2ea link parent list change 2024-04-11 14:52:44 +03:00
Yuri Kuznetsov 01eacf875d list link mode color default 2024-04-11 14:28:38 +03:00
Yuri Kuznetsov 6da9ac6af1 enum label type 2024-04-11 13:17:07 +03:00
Yuri Kuznetsov 418ad2776d wysiwyg attributes order preserving 2024-04-11 12:10:46 +03:00
Yuri Kuznetsov 2a2c07af87 cleanup 2024-04-11 11:55:15 +03:00
Yuri Kuznetsov ca898cf240 ref 2024-04-11 11:29:48 +03:00
Yuri Kuznetsov 05b6f83ba1 style fix 2024-04-11 11:00:39 +03:00
Yuri Kuznetsov 68ccaf8818 activities dashlet fix refresh 2024-04-11 10:53:59 +03:00
Yuri Kuznetsov 162e0ab546 ref 2024-04-11 10:32:59 +03:00
Yuri Kuznetsov 4c9df4da1b activities panel changes 2024-04-11 10:26:39 +03:00
Yuri Kuznetsov d1c2e82abc wysiwyg fetch empty as null 2024-04-10 23:08:10 +03:00
Yuri Kuznetsov c054cde199 currency fix 2024-04-10 23:03:16 +03:00
Yuri Kuznetsov f113905edd cleanup 2024-04-10 22:50:45 +03:00
Yuri Kuznetsov b4e2b91c31 ref 2024-04-10 22:48:11 +03:00
Yuri Kuznetsov 3568345343 no join loader load all links 2024-04-10 14:35:32 +03:00
Yuri Kuznetsov 4f1223e9a0 Merge branch 'fix' 2024-04-10 13:23:38 +03:00
Yuri Kuznetsov c6a172a6d0 style fix 2024-04-10 13:23:27 +03:00
Yuri Kuznetsov 1da70019fb fix tests 2024-04-10 11:09:43 +03:00
Yuri Kuznetsov a84962d96d formula func variable aware 2024-04-10 10:54:33 +03:00
Yuri Kuznetsov 98253fb0a8 customizable check 2024-04-10 10:09:01 +03:00
Yuri Kuznetsov 7887e4c7e3 style fix 2024-04-09 21:23:28 +03:00
Yuri Kuznetsov abe383d532 call rows actions fix 2024-04-09 20:56:51 +03:00
Yuri Kuznetsov a8078c3fc6 row actions dividers 2024-04-09 20:35:36 +03:00
Yuri Kuznetsov 9fd07d2fab notify usage 2024-04-09 19:42:36 +03:00
Yuri Kuznetsov f42fbd0098 ref 2024-04-09 19:40:38 +03:00
Yuri Kuznetsov d431699dbe css fix 2024-04-09 16:51:50 +03:00
Yuri Kuznetsov 9b883d3e59 convert currency item order 2024-04-09 16:45:39 +03:00
Yuri Kuznetsov 955e53304f modal dropdown dividers 2024-04-09 16:14:26 +03:00
Yuri Kuznetsov ed7085e952 detail view dropdown dividers 2024-04-09 15:55:46 +03:00
Yuri Kuznetsov e274907260 schema 2024-04-09 15:29:00 +03:00
Yuri Kuznetsov 96520162d3 link load names test 2024-04-09 13:34:41 +03:00
Yuri Kuznetsov bb091a0301 foreign attributes unset and foregn names load 2024-04-09 13:07:45 +03:00
Yuri Kuznetsov 7253082497 console command allowed flags 2024-04-09 11:34:16 +03:00
Yuri Kuznetsov 0e446c6f08 console allowed options 2024-04-09 11:25:24 +03:00
Yuri Kuznetsov 7af208c2a0 after-upgrade pass isUpgrade 2024-04-09 10:49:00 +03:00
Yuri Kuznetsov 60e0c03a1e Merge branch 'fix' 2024-04-09 10:43:12 +03:00
Yuri Kuznetsov 89f75bfb37 oidc prevent errors when user is not allowed 2024-04-09 09:24:23 +03:00
Yuri Kuznetsov b83a66cf49 bg lang 2024-04-08 12:51:16 +03:00
Yuri Kuznetsov 3cd6deb732 pagination previous step and modal detail pagination fix 2024-04-08 12:07:14 +03:00
Yuri Kuznetsov 59fff4cc80 fix detail pagination 2024-04-08 11:40:57 +03:00
Yuri Kuznetsov 35e7b5c5ee move 2024-04-07 18:50:17 +03:00
Yuri Kuznetsov e7415a2317 ref 2024-04-07 18:44:44 +03:00
Yuri Kuznetsov 69c5af4d97 Merge branch 'fix' 2024-04-07 18:31:07 +03:00
Yuri Kuznetsov dca1d34685 reminder usersColumns check 2024-04-07 18:30:55 +03:00
Yuri Kuznetsov 105922b026 email create filter from address 2024-04-07 17:18:48 +03:00
Yuri Kuznetsov 1dd6ea1bac jsdocs 2024-04-07 17:06:16 +03:00
Yuri Kuznetsov 54f1fb27a1 email filter change layout 2024-04-07 15:13:43 +03:00
Yuri Kuznetsov 27353b1fbf attendeeLinkMap 2024-04-07 13:26:37 +03:00
Yuri Kuznetsov afc34a9730 add docs 2024-04-07 11:36:09 +03:00
Yuri Kuznetsov 5b4e3cbc66 cleanup 2024-04-07 11:27:21 +03:00
Yuri Kuznetsov 5b763b7519 rename 2024-04-07 11:27:01 +03:00
Yuri Kuznetsov fb07cec466 fix 2024-04-07 11:26:20 +03:00
Yuri Kuznetsov 04ea13d8e2 list view docs 2024-04-07 11:26:15 +03:00
Yuri Kuznetsov 9208775f34 list view focus 2024-04-06 18:04:14 +03:00
Yuri Kuznetsov 308c480317 migrations beta versions 2024-04-06 16:16:36 +03:00
Yuri Kuznetsov 85af141f9f Merge branch 'f/migrations' 2024-04-06 12:46:04 +03:00
Yuri Kuznetsov d7a88b382d migrations fix and dev 2024-04-06 12:45:55 +03:00
Yuri Kuznetsov 8133682288 ref 2024-04-06 09:58:48 +03:00
Yuri Kuznetsov 0b035b89c0 user fetch issue 2024-04-06 09:55:56 +03:00
Yuri Kuznetsov d5930542d9 ref 2024-04-06 09:51:56 +03:00
Yuri Kuznetsov 831dfc5bfd fix sndAccessInfo fetch 2024-04-06 09:51:48 +03:00
Yuri Kuznetsov 078808604c ref 2024-04-06 09:38:39 +03:00
Yuri Kuznetsov 35f8c5652a avater flicker fix 2024-04-06 09:35:25 +03:00
Yuri Kuznetsov 14d8f88985 ref 2024-04-06 09:32:17 +03:00
Yuri Kuznetsov 2ae0a118b6 disable note in link manager 2024-04-05 23:11:44 +03:00
Yuri Kuznetsov 1a51759b0f fix user acl 2024-04-05 20:18:21 +03:00
Yuri Kuznetsov acc2eb1a55 migrations dev 2024-04-05 15:48:20 +03:00
Yuri Kuznetsov e513a72504 migratinos dev 2024-04-05 14:58:53 +03:00
Yuri Kuznetsov a8fa8bfa00 ref 2024-04-05 14:14:31 +03:00
Yuri Kuznetsov e8473e5ce0 migrations dev 2024-04-05 13:34:49 +03:00
Yuri Kuznetsov 5a6583b93b migrations dev 2024-04-05 13:19:43 +03:00
Yuri Kuznetsov 977b9adeff migrations dev 2024-04-05 12:17:00 +03:00
Yuri Kuznetsov 382ba22cd7 fix command test 2024-04-05 11:25:23 +03:00
Yuri Kuznetsov 03e16b81e5 upgrade ref and test fixes 2024-04-05 11:21:09 +03:00
Yuri Kuznetsov 455bb2a298 migrations ref 2024-04-05 11:01:02 +03:00
Yuri Kuznetsov 0b19bd4bb5 upgrade ref 2024-04-05 10:47:10 +03:00
Yuri Kuznetsov 48b0063c69 middle table prefix server side check 2024-04-05 09:51:22 +03:00
Yuri Kuznetsov 9395fa886e grid layout css fix 2024-04-05 09:39:22 +03:00
Yuri Kuznetsov a6c95ff0d5 layouts title 2024-04-05 09:37:10 +03:00
Yuri Kuznetsov 0a115a3603 command noSystemUser param 2024-04-04 20:53:33 +03:00
Yuri Kuznetsov fcb3158a06 readme 2024-04-04 20:27:47 +03:00
Yuri Kuznetsov 77f60734f6 upgrade ref 2024-04-04 16:19:56 +03:00
Eymen Elkum 1c10ddd7b8 add missing & to google static url 2024-04-04 13:53:06 +03:00
Yuri Kuznetsov d8dd048a89 migrations dev 2024-04-04 13:26:32 +03:00
Yuri Kuznetsov 42812f8bb2 ref 2024-04-04 11:42:07 +03:00
Yuri Kuznetsov b5a9690b63 Merge branch 'fix' 2024-04-04 10:44:59 +03:00
Yuri Kuznetsov 268354f3c6 8.2.2 2024-04-04 10:21:51 +03:00
Yuri Kuznetsov 3ca68f2539 email tempalte importable 2024-04-04 09:55:47 +03:00
Yuri Kuznetsov 08f2c5ea72 disable options reference for salutation 2024-04-04 09:32:53 +03:00
Yuri Kuznetsov 4d1f3d214d label format 2024-04-03 15:52:09 +03:00
Yuri Kuznetsov fab13b3140 fix import action translation 2024-04-03 15:36:25 +03:00
Yuri Kuznetsov b741898ce9 Merge branch 'fix' 2024-04-03 14:44:58 +03:00
Yuri Kuznetsov 45ac0f7fee fix autocomplete 2024-04-03 10:19:37 +03:00
Yuri Kuznetsov 406487d50c before upgrade extension check 2024-04-03 09:38:52 +03:00
Yuri Kuznetsov d73608e16b 8.2.1 2024-04-02 20:55:39 +03:00
Yuri Kuznetsov 8328e8c644 fix action history order 2024-04-02 19:38:09 +03:00
Yuri Kuznetsov b89c28fe96 Merge branch 'fix' 2024-04-02 17:32:42 +03:00
Yuri Kuznetsov 19a96d2e3d disable customization for user portal 2024-04-02 17:32:30 +03:00
Yuri Kuznetsov 1c68c805aa Merge branch 'fix' 2024-04-02 15:42:14 +03:00
Yuri Kuznetsov a823e06f13 dynamic logic lin one 2024-04-02 15:42:02 +03:00
Yuri Kuznetsov cef7a919b8 suppress inspection 2024-04-02 14:39:22 +03:00
Yuri Kuznetsov 3117db022f type fix 2024-04-02 14:38:40 +03:00
Yuri Kuznetsov 7b642e40b0 phone ext langth frontend validation 2024-04-02 14:21:53 +03:00
Yuri Kuznetsov 89ff3dcf15 phone number extensions 2024-04-02 13:47:23 +03:00
Yuri Kuznetsov 0336b76a96 before upgrade script 2024-04-02 10:45:35 +03:00
Yuri Kuznetsov 76cac35c54 link name default middle name prefix 2024-04-02 10:10:32 +03:00
Yuri Kuznetsov 79c8d25a80 comments 2024-04-01 19:44:47 +03:00
Yuri Kuznetsov 58d926be82 orm base entity writtenMap change 2024-04-01 19:40:04 +03:00
Yuri Kuznetsov 3044f83690 orderDisabled parameter 2024-04-01 17:05:57 +03:00
Yuri Kuznetsov f2d5b2685e jsdoc 2024-04-01 16:10:27 +03:00
Yuri Kuznetsov 17abe18d01 validation before check create access 2024-04-01 15:32:07 +03:00
Yuri Kuznetsov 09880ff8f1 import error file and line 2024-04-01 15:23:14 +03:00
Yuri Kuznetsov 23f4686577 send invitation check status backend 2024-04-01 13:22:12 +03:00
Yuri Kuznetsov 088edbf708 avatar colors 2024-03-31 21:14:21 +03:00
Yuri Kuznetsov e2f6c8abe7 ref 2024-03-31 20:56:03 +03:00
Yuri Kuznetsov f2735e5fbc avatar color 2024-03-31 17:31:18 +03:00
Yuri Kuznetsov f8106a81c7 ref meeting buttons 2024-03-31 15:57:59 +03:00
Yuri Kuznetsov 1d7bce5343 ref 2024-03-31 15:37:16 +03:00
Yuri Kuznetsov 224e0e8625 internal note icon position 2024-03-30 16:42:06 +02:00
Yuri Kuznetsov d5b3a7d2ea calendar mode buttons change 2024-03-30 13:14:19 +02:00
Yuri Kuznetsov bd0be4542e calendar mode buttons change 2024-03-30 13:12:09 +02:00
Yuri Kuznetsov e78052ce33 ref 2024-03-30 13:01:26 +02:00
Yuri Kuznetsov 24f79b9206 avatar color change 2024-03-30 12:39:49 +02:00
Yuri Kuznetsov df9633503b email account filters 2024-03-30 10:07:38 +02:00
Yuri Kuznetsov 5e1c12f4b1 reminder fix 2024-03-30 09:55:02 +02:00
Yuri Kuznetsov 5699c3d15e close button style fix 2024-03-30 09:49:00 +02:00
Yuri Kuznetsov cd88e8ac7a cs 2024-03-30 09:31:35 +02:00
Yuri Kuznetsov 3c83e1dcd3 hide complex modified field if not modified 2024-03-30 09:23:56 +02:00
Yuri Kuznetsov d232838676 stream abort last fetch 2024-03-30 09:08:52 +02:00
Yuri Kuznetsov 2ae0f48619 avatar color change 2024-03-29 16:52:11 +02:00
Yuri Kuznetsov 170782d17f add BDT currency 2024-03-29 16:49:22 +02:00
Yuri Kuznetsov 2cbdbbf6fb avatar color changes 2024-03-29 16:44:14 +02:00
Yuri Kuznetsov 0a750f373f avatar font change 2024-03-29 16:39:51 +02:00
Yuri Kuznetsov 92ff5e1859 avatar explicit font file 2024-03-29 15:58:18 +02:00
Yuri Kuznetsov cb3257a890 notification list view refresh ui fix 2024-03-29 13:49:05 +02:00
Yuri Kuznetsov 9377cd150d img preview border radius small 2024-03-29 13:33:34 +02:00
Yuri Kuznetsov e1f2fd8094 avatar color change 2024-03-29 11:54:43 +02:00
Yuri Kuznetsov 70dcf6ed69 avatar colors change 2024-03-29 11:47:26 +02:00
Yuri Kuznetsov 6c62dbc604 portal avatar color 2024-03-29 11:34:52 +02:00
Yuri Kuznetsov b6807091a5 user avater css fix 2024-03-29 11:25:11 +02:00
Yuri Kuznetsov 33f3784b3a lang 2024-03-29 09:49:28 +02:00
Yuri Kuznetsov 0e9b552796 teams importable 2024-03-29 09:35:13 +02:00
Yuri Kuznetsov 111e1a278c ref 2024-03-29 09:33:48 +02:00
Yuri Kuznetsov 34ecdd7533 export ignore utility 2024-03-29 09:28:15 +02:00
Yuri Kuznetsov 7ec9c1c5ae team export 2024-03-29 09:24:00 +02:00
Yuri Kuznetsov 1055fd8a79 lang 2024-03-29 09:23:33 +02:00
Yuri Kuznetsov 03102da373 fix format person name 2024-03-28 15:38:22 +02:00
Yuri Kuznetsov 23ea8b418a ref 2024-03-28 15:16:12 +02:00
Yuri Kuznetsov 9269fa1933 cs 2024-03-28 15:14:33 +02:00
Yuri Kuznetsov 5a1a9f17a0 ref 2024-03-28 10:25:44 +02:00
Yuri Kuznetsov c4ca71a7f6 firefox calendar style fix 2024-03-28 10:23:48 +02:00
Yuri Kuznetsov 991d111ac3 auth token expiration support decimals 2024-03-27 21:59:42 +02:00
Yuri Kuznetsov 7f18fb0cba fix foreign enum error 2024-03-27 21:49:04 +02:00
Yuri Kuznetsov c4d54ffa71 avatar font size 2024-03-27 19:38:10 +02:00
Yuri Kuznetsov 1ee2d5c58b avatar change sizes 2024-03-27 19:31:14 +02:00
Yuri Kuznetsov 94d9d0fc38 cleanup 2024-03-27 16:53:31 +02:00
dependabot[bot] 9252905103 Bump express from 4.18.1 to 4.19.2
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 15:27:22 +02:00
Yuri Kuznetsov e9b49a5317 cleanup vendor 2024-03-27 14:30:37 +02:00
Yuri Kuznetsov 9e50337c99 avatar fallback to userName 2024-03-27 13:02:44 +02:00
Yuri Kuznetsov 07b68d9b7d number power function 2024-03-27 10:11:03 +02:00
Yuri Kuznetsov c7d1fc7c35 ref 2024-03-26 19:02:16 +02:00
Yuri Kuznetsov 18b5b99854 opp by lead source chart changes 2024-03-26 18:01:23 +02:00
Yuri Kuznetsov e60d4ba19b fix sticky bar destroy 2024-03-26 17:39:52 +02:00
Yuri Kuznetsov dcf2b49b19 pie chart select none 2024-03-26 16:36:35 +02:00
Yuri Kuznetsov 4aecb4a255 chart no user select 2024-03-26 16:31:18 +02:00
Yuri Kuznetsov 7cf7f2ffd8 update note style change 2024-03-26 15:36:46 +02:00
Yuri Kuznetsov a78161799c scroll after go to page 2024-03-26 15:09:03 +02:00
Yuri Kuznetsov 6a37eee973 thousand separator validator 2024-03-26 14:19:17 +02:00
Yuri Kuznetsov bb5be010f2 pagination true 2024-03-26 12:29:36 +02:00
Yuri Kuznetsov dcd4e56aa7 sticky bar ref and fix 2024-03-26 12:09:59 +02:00
Yuri Kuznetsov 12f928c192 cs 2024-03-26 11:15:35 +02:00
Yuri Kuznetsov 1b47b94154 ref 2024-03-26 10:08:44 +02:00
Yuri Kuznetsov f64f4ea1b1 total text style fix 2024-03-26 09:58:03 +02:00
Yuri Kuznetsov faa33769f1 list top bar style fixes 2024-03-26 09:54:41 +02:00
Yuri Kuznetsov 1b0487eeea sort + sticky bar fix 2024-03-25 17:46:11 +02:00
Yuri Kuznetsov 7ffc06065f fix last page menu item 2024-03-25 16:11:00 +02:00
Yuri Kuznetsov 515720afda cleanup 2024-03-25 16:00:35 +02:00
Yuri Kuznetsov 3f1e6a6628 pagination go to page 2024-03-25 15:33:58 +02:00
Yuri Kuznetsov a94deb9f33 event confirmation note style fix 2024-03-25 13:37:52 +02:00
Yuri Kuznetsov b2d91b3fe9 pagination shortcuts 2024-03-25 12:17:53 +02:00
Yuri Kuznetsov 1f7e23af28 collection has page methods 2024-03-25 11:57:09 +02:00
Yuri Kuznetsov 0275b7fe4d pagination show more fixes 2024-03-25 11:52:21 +02:00
Yuri Kuznetsov d4b25090aa do not fetch after remove 2024-03-25 11:41:01 +02:00
Yuri Kuznetsov 7b14e7fb79 chart legend style fix 2024-03-25 11:32:48 +02:00
Yuri Kuznetsov 1d156e6af6 caret hover color 2024-03-24 23:12:10 +02:00
Yuri Kuznetsov b91e40b0e7 fix calendar 7d event issue 2024-03-24 18:23:02 +02:00
Yuri Kuznetsov fab908c313 contributing note 2024-03-24 18:09:17 +02:00
Yuri Kuznetsov 24e5cd67dd pagination warning fix 2024-03-24 17:02:17 +02:00
Yuri Kuznetsov 7297e0eb83 pagination display top bar if out of bound 2024-03-24 16:58:26 +02:00
Yuri Kuznetsov 81cce0ddb7 light theme by default 2024-03-24 12:46:14 +02:00
Yuri Kuznetsov 8232ef3dd2 label-state 2024-03-24 12:12:53 +02:00
Yuri Kuznetsov b930180907 stream update note: show fields 2024-03-24 11:19:50 +02:00
Yuri Kuznetsov ef6866773c stream notes style changes 2024-03-24 10:54:00 +02:00
Yuri Kuznetsov 415dc7607e cs 2024-03-24 10:15:24 +02:00
Yuri Kuznetsov 726f2abd96 email body insert field button in the end 2024-03-23 20:33:23 +02:00
Yuri Kuznetsov 894acad7ec less ref 2024-03-23 20:24:14 +02:00
Yuri Kuznetsov d9d7de8804 ref 2024-03-23 13:31:09 +02:00
Yuri Kuznetsov dcd0469977 fix collection set offset 2024-03-23 13:19:32 +02:00
Yuri Kuznetsov 434112eff3 pagination w/ show-more fixes 2024-03-23 12:17:42 +02:00
Yuri Kuznetsov ace9186691 update bullbone 2024-03-23 12:02:01 +02:00
Yuri Kuznetsov 29cc42e2e8 pagination offset fix 2024-03-23 11:43:13 +02:00
Yuri Kuznetsov 3ae6120067 ref 2024-03-23 10:07:14 +02:00
Yuri Kuznetsov 377f51a962 ref 2024-03-23 09:37:36 +02:00
Yuri Kuznetsov dc61e630b4 primary filter menu style 2024-03-23 09:19:07 +02:00
Yuri Kuznetsov d2ec8eda86 color fix 2024-03-23 08:58:19 +02:00
Yuri Kuznetsov 376de3b6d9 style fix 2024-03-22 11:53:08 +02:00
Yuri Kuznetsov 82ad0cb5cd selectize small style fix 2024-03-22 11:46:08 +02:00
Yuri Kuznetsov df9431670a schema 2024-03-22 11:41:43 +02:00
Yuri Kuznetsov e96f4fcedd api key copy to clipboard 2024-03-22 11:37:51 +02:00
Yuri Kuznetsov 1e96b90e28 status styles 2024-03-22 11:12:20 +02:00
Yuri Kuznetsov 46897ec3dd status styles changes 2024-03-22 11:04:30 +02:00
Yuri Kuznetsov ffa8248ac1 small input 29px 2024-03-22 10:35:59 +02:00
Yuri Kuznetsov 7d90a0c59b fix 2024-03-21 21:23:35 +02:00
Yuri Kuznetsov e33e77cb9e style fix 2024-03-21 13:28:32 +02:00
Yuri Kuznetsov f7a7c3bc72 comment 2024-03-21 13:15:07 +02:00
Yuri Kuznetsov c8371bef3f dynamic logic style fix 2024-03-21 13:06:29 +02:00
Yuri Kuznetsov 7c3f285342 opp probability not required 2024-03-21 11:56:24 +02:00
Yuri Kuznetsov ed3a7d64c6 sanitize date and date time, parse ATOM format 2024-03-21 11:35:47 +02:00
Yuri Kuznetsov 00b4569f8e webhook queue change scheduling 2024-03-20 12:02:39 +02:00
Yuri Kuznetsov 41e0b90850 cs 2024-03-20 12:02:10 +02:00
Yuri Kuznetsov 4d35bce189 metadata get by key endpoint 2024-03-20 11:42:11 +02:00
Yuri Kuznetsov e6631ba1d1 ref 2024-03-20 09:44:26 +02:00
Yuri Kuznetsov 6bae952947 Merge branch 'fix' 2024-03-20 09:17:30 +02:00
Yuri Kuznetsov 2e550af196 templte helper data context mixed 2024-03-20 09:16:08 +02:00
Yuri Kuznetsov 95ecc416f1 tpl fix 2024-03-19 15:54:09 +02:00
Yuri Kuznetsov ee3b0cb53d bc fix 2024-03-19 15:48:08 +02:00
Yuri Kuznetsov bfa0ea53a4 avatar field rounded 2024-03-19 12:21:41 +02:00
Yuri Kuznetsov 2f338d6eda lang files 2024-03-19 12:13:08 +02:00
Yuri Kuznetsov 6e59165786 v 2024-03-19 11:06:54 +02:00
Yuri Kuznetsov a5a6c8a0a1 cleanup 2024-03-19 10:19:45 +02:00
Yuri Kuznetsov cd0c397b07 ref 2024-03-19 10:13:27 +02:00
Yuri Kuznetsov 7ba7f8aa14 load assigned user name always 2024-03-19 09:07:42 +02:00
Yuri Kuznetsov 91d0660cba load assigned user name if null 2024-03-19 08:56:54 +02:00
Yuri Kuznetsov e8bbcb2ae4 tabindex 2024-03-18 17:57:58 +02:00
Yuri Kuznetsov 834d1808a1 cleanup preferences params 2024-03-18 17:10:43 +02:00
Yuri Kuznetsov 2d264eccb7 fix pagination error from detail pagination 2024-03-18 16:26:51 +02:00
Yuri Kuznetsov 3ec0fe1e03 fetch after remove if pagination 2024-03-18 15:58:09 +02:00
Yuri Kuznetsov 2f85c5cb3c ref 2024-03-18 15:10:38 +02:00
Yuri Kuznetsov 69cd4386f1 fix pagination 2024-03-18 15:07:24 +02:00
Yuri Kuznetsov effb81837f fix 2024-03-18 14:42:52 +02:00
Yuri Kuznetsov d0139ada06 list expanded force no pagination 2024-03-18 14:34:50 +02:00
Yuri Kuznetsov 2920793e40 style fix 2024-03-18 14:28:31 +02:00
Yuri Kuznetsov 570f886a1f reseting collection offset 2024-03-18 13:54:28 +02:00
Yuri Kuznetsov 21dab40b43 rebuild full on pg 2024-03-18 13:24:40 +02:00
Yuri Kuznetsov 801ccf94c7 pagination impr 2024-03-18 13:17:33 +02:00
Yuri Kuznetsov 7114b99cbc sticky bar fix 2024-03-18 11:07:22 +02:00
Yuri Kuznetsov 94c99f298e pagination stlye fixes 2024-03-18 10:55:10 +02:00
Yuri Kuznetsov ac37a4c232 notficaition bc fix 2024-03-18 10:11:31 +02:00
Yuri Kuznetsov 5ad4f30505 ref 2024-03-18 10:07:46 +02:00
Yuri Kuznetsov b4773ade9b fix 2024-03-17 18:14:22 +02:00
Yuri Kuznetsov 63f422f93a ref, return promise 2024-03-17 13:02:44 +02:00
Yuri Kuznetsov 1134f89a5a suppress 2024-03-17 12:56:30 +02:00
Yuri Kuznetsov fe0b1b62d1 ref 2024-03-17 12:50:52 +02:00
Yuri Kuznetsov d549ccb300 style fix 2024-03-17 12:47:52 +02:00
Yuri Kuznetsov 06d596b5cf pagination changes 2024-03-17 11:46:58 +02:00
Yuri Kuznetsov 1091b21306 clear stored email view 2024-03-16 12:28:16 +02:00
Yuri Kuznetsov 780b66d5b4 docs 2024-03-16 12:13:04 +02:00
Yuri Kuznetsov 10982e1b19 store main view ref 2024-03-15 18:35:15 +02:00
Yuri Kuznetsov 068375022e grid layout manager style impr 2024-03-15 17:41:28 +02:00
Yuri Kuznetsov d6bd701492 remove eot svg fonts 2024-03-15 16:44:42 +02:00
Yuri Kuznetsov 223b4ab8aa extension version print 2024-03-15 15:35:42 +02:00
Yuri Kuznetsov 6aff357473 cleanup 2024-03-15 15:08:20 +02:00
Yuri Kuznetsov 3ef24bb5ad avatars 2024-03-15 14:54:02 +02:00
Yuri Kuznetsov 9e60ea2209 image preview border radius 2024-03-15 13:45:02 +02:00
Yuri Kuznetsov 86904380bb image list preview style fix 2024-03-15 12:59:41 +02:00
Yuri Kuznetsov 9cdef865fe ref 2024-03-14 11:51:52 +02:00
Yuri Kuznetsov 1d611720c6 remove title 2024-03-14 11:43:27 +02:00
Yuri Kuznetsov 7285e058cd fix link field unset on clear 2024-03-14 10:57:32 +02:00
Yuri Kuznetsov e44617e276 fix extend 2024-03-14 10:16:48 +02:00
Yuri Kuznetsov 81972e26ff restore opp service class 2024-03-14 10:07:23 +02:00
Yuri Kuznetsov 5a7a4608c9 fix message 2024-03-14 10:00:04 +02:00
Yuri Kuznetsov 9161e64932 update icons 2024-03-14 09:56:12 +02:00
Yuri Kuznetsov cfd514c5a5 remove test 2024-03-13 22:55:02 +02:00
Yuri Kuznetsov b42f4ee256 no order 2024-03-13 22:10:52 +02:00
Yuri Kuznetsov a5a4fbca2f fix field manager when no params for type 2024-03-13 19:48:29 +02:00
Yuri Kuznetsov a706811338 attachment remove 2024-03-13 16:26:58 +02:00
Yuri Kuznetsov ec120dfd75 ref 2024-03-13 16:01:49 +02:00
Yuri Kuznetsov fe7b19b96d color fix 2024-03-13 15:15:15 +02:00
Yuri Kuznetsov ff5e1dac43 color fixes 2024-03-13 14:39:45 +02:00
Yuri Kuznetsov e73f7e9807 group folder ui impr 2024-03-13 14:13:32 +02:00
Yuri Kuznetsov 15e99e3063 schema 2024-03-13 13:24:20 +02:00
Yuri Kuznetsov 4edc909f2a fix 2024-03-13 12:36:16 +02:00
Yuri Kuznetsov d1fe29adbe throw tag 2024-03-13 12:32:20 +02:00
Yuri Kuznetsov 980226c4a2 cs 2024-03-13 12:30:39 +02:00
Yuri Kuznetsov c4c4306ad3 import encode URL 2024-03-13 12:29:53 +02:00
Yuri Kuznetsov 10732c0a90 fix 2024-03-13 11:00:30 +02:00
Yuri Kuznetsov ca2c4b3ee4 Merge branch 'fix' 2024-03-12 13:42:45 +02:00
Yuri Kuznetsov 03671efe11 category default 2024-03-12 13:38:29 +02:00
Yuri Kuznetsov 748529afac ref 2024-03-11 18:43:55 +02:00
Yuri Kuznetsov 1a003e5905 ref 2024-03-11 18:37:47 +02:00
Eymen Elkum d6c66b8b43 fix entity rename command 2024-03-11 11:00:22 +02:00
Yuri Kuznetsov 813bc05e74 foreign field do not list utility link 2024-03-11 09:47:03 +02:00
Yuri Kuznetsov ef447b400c fix test send button 2024-03-09 21:34:00 +02:00
Yuri Kuznetsov aca823df64 Merge branch 'fix' 2024-03-09 21:26:58 +02:00
Yuri Kuznetsov 0832faa2f2 fix port is string 2024-03-09 21:26:47 +02:00
Yuri Kuznetsov 7573bd1f92 link parent autocomplete fix 2024-03-08 16:27:14 +02:00
Yuri Kuznetsov 35eb013c97 schema 2024-03-08 11:10:07 +02:00
Yuri Kuznetsov 110f769384 ics description fix line break 2024-03-07 17:02:31 +02:00
Yuri Kuznetsov 6ce7c6ccda schema fix 2024-03-07 12:38:16 +02:00
Yuri Kuznetsov 350141727b disable merge 2024-03-06 13:47:16 +02:00
Yuri Kuznetsov c63fed50d5 fix install labels 2024-03-06 13:46:42 +02:00
Yuri Kuznetsov 24a22328c9 prop helper undefined warn 2024-03-05 10:39:32 +02:00
Yuri Kuznetsov 0504410ee9 fix type check 2024-03-05 10:06:38 +02:00
Yuri Kuznetsov 3a1bc73692 update phpseclib 2024-03-05 10:05:41 +02:00
Yuri Kuznetsov f02ee87344 customizationReadOnlyDisabled for account field 2024-03-04 17:00:40 +02:00
Yuri Kuznetsov 7cdcb375b3 wysiwyg audited 2024-03-04 16:09:28 +02:00
Yuri Kuznetsov 52c07987c6 move 2024-03-04 16:06:11 +02:00
Yuri Kuznetsov 11dee6e984 global stream prepare note 2024-03-04 16:05:05 +02:00
Yuri Kuznetsov 036cf4330f fix stream 2024-03-04 15:59:33 +02:00
Yuri Kuznetsov 4fec73307b pg orm tests 2024-03-04 13:42:36 +02:00
Yuri Kuznetsov a58047433b eol 2024-03-04 13:06:10 +02:00
Yuri Kuznetsov e004884352 schema 2024-03-04 13:06:03 +02:00
Yuri Kuznetsov 8aa7236dd6 link select filter 2024-03-04 12:56:07 +02:00
Yuri Kuznetsov 1f297aa42e setOptionList promise 2024-03-04 11:54:36 +02:00
Yuri Kuznetsov b5a0848513 style fix 2024-03-04 11:38:40 +02:00
Yuri Kuznetsov c2ea9781ee cs 2024-03-04 11:04:13 +02:00
Yuri Kuznetsov 93255071ac color fix 2024-03-04 10:27:17 +02:00
Yuri Kuznetsov 313293b57b comments 2024-03-03 13:32:46 +02:00
Yuri Kuznetsov 687ceca26e fix hooksDisabled 2024-03-03 13:25:54 +02:00
Yuri Kuznetsov 55b1c1511a cs 2024-03-03 13:16:35 +02:00
Yuri Kuznetsov 04ccf36966 ref 2024-03-02 19:15:02 +02:00
Yuri Kuznetsov 3eba144998 event repository ref 2024-03-02 19:10:39 +02:00
Yuri Kuznetsov e2bd509aeb hooksDisabled 2024-03-02 18:51:18 +02:00
Yuri Kuznetsov 9be5342220 repositoryClassName, entityClassName in metadata 2024-03-02 18:42:36 +02:00
Yuri Kuznetsov e96c1deffe comment 2024-03-02 18:02:26 +02:00
Yuri Kuznetsov aa53bc89b4 output filters 2024-03-02 13:30:41 +02:00
Yuri Kuznetsov e57bd13f73 lead capture copy to clipboard url 2024-03-01 16:38:46 +02:00
Yuri Kuznetsov 00f30e01d5 style fix 2024-03-01 16:38:32 +02:00
Yuri Kuznetsov fcb73fb3a8 ref 2024-03-01 16:32:00 +02:00
Yuri Kuznetsov fba82f8697 ref, comments 2024-03-01 16:07:57 +02:00
Yuri Kuznetsov 13c8fc15f4 ref 2024-03-01 16:03:27 +02:00
Yuri Kuznetsov 3a3cac54a2 ref 2024-03-01 15:49:30 +02:00
Yuri Kuznetsov 303860d509 forceValidation, ref 2024-03-01 15:39:49 +02:00
Yuri Kuznetsov ba2a740d38 ref 2024-03-01 15:02:37 +02:00
Yuri Kuznetsov 87f4508d1c schema 2024-03-01 14:04:01 +02:00
Yuri Kuznetsov fea79ba8c9 after link record hooks 2024-03-01 13:49:35 +02:00
Yuri Kuznetsov 734ca9b488 cleanup 2024-03-01 13:37:00 +02:00
Yuri Kuznetsov c695e64652 ref, noinsp 2024-03-01 13:20:25 +02:00
Yuri Kuznetsov 77218b788a cleanup 2024-03-01 13:18:02 +02:00
Yuri Kuznetsov e5063c2016 ref 2024-03-01 13:15:01 +02:00
Yuri Kuznetsov a6cfb38433 fix 2024-03-01 12:54:45 +02:00
Yuri Kuznetsov ae657ada61 ref 2024-03-01 12:36:07 +02:00
Yuri Kuznetsov ee8963ace8 ref 2024-03-01 11:12:41 +02:00
Yuri Kuznetsov aca76ae3a6 ref 2024-02-29 20:04:34 +02:00
Yuri Kuznetsov 5e3cdc594d user stream note helper 2024-02-29 17:49:35 +02:00
Yuri Kuznetsov 959fdbab94 ref 2024-02-29 17:38:48 +02:00
Yuri Kuznetsov f19952af12 ref 2024-02-29 17:25:08 +02:00
Yuri Kuznetsov 9b3c59bfa4 ref 2024-02-29 15:47:59 +02:00
Yuri Kuznetsov 55dd4ecf74 formula priority fix 2024-02-29 14:42:25 +02:00
Yuri Kuznetsov bbff632fbc bind user 2024-02-29 12:44:29 +02:00
Yuri Kuznetsov 4127be7f2f record service bind user 2024-02-29 12:05:41 +02:00
Yuri Kuznetsov 3a77ea83a3 record input filters 2024-02-29 11:46:28 +02:00
Yuri Kuznetsov 2bd70eee4b Merge branch 'fix' 2024-02-29 10:15:36 +02:00
Yuri Kuznetsov 0dd34df7d7 isWorkingDay fix 2024-02-29 10:10:33 +02:00
Yuri Kuznetsov 41c0567a4f ref 2024-02-28 15:10:32 +02:00
Yuri Kuznetsov dcaa1e209e rename 2024-02-28 14:59:33 +02:00
Yuri Kuznetsov f1e67d943d rename 2024-02-28 14:54:39 +02:00
Yuri Kuznetsov 70afd19f7f ref 2024-02-28 14:42:22 +02:00
Yuri Kuznetsov 7f6ce95fd6 record create defaults populator 2024-02-28 14:37:45 +02:00
Yuri Kuznetsov 035e1ef9eb Merge branch 'fix' 2024-02-28 10:14:46 +02:00
Yuri Kuznetsov 4964fbb1b2 load link multiple audit was names 2024-02-27 17:55:55 +02:00
Yuri Kuznetsov 2ca3aade8c fix link multiple factory 2024-02-27 12:55:49 +02:00
Yuri Kuznetsov 878f33929b upper case multi word note string items 2024-02-27 12:34:31 +02:00
Yuri Kuznetsov ae340b3279 highlight field on restore 2024-02-27 11:48:08 +02:00
Yuri Kuznetsov 0da0b8974c audit restore 2024-02-27 11:10:52 +02:00
Yuri Kuznetsov d7804bfa79 ref 2024-02-27 10:20:29 +02:00
Yuri Kuznetsov e451126af7 ref 2024-02-26 19:43:47 +02:00
Yuri Kuznetsov 38049d0ef4 upper case status 2024-02-26 18:12:35 +02:00
Yuri Kuznetsov 31e25047cc ref 2024-02-26 18:08:47 +02:00
Yuri Kuznetsov 8d105465a3 ref 2024-02-26 18:06:44 +02:00
Yuri Kuznetsov d8c021def2 fix 2024-02-26 17:57:19 +02:00
Yuri Kuznetsov ba08b8a8af ref 2024-02-26 17:56:17 +02:00
Yuri Kuznetsov 6974c00d02 fix layout manager label conflict 2024-02-26 17:06:57 +02:00
Yuri Kuznetsov 5446914131 ref 2024-02-26 16:54:27 +02:00
Yuri Kuznetsov 68add0bbd7 Update feature_request.md 2024-02-26 16:25:39 +02:00
Yuri Kuznetsov 28d0c4dd6e Update feature_request.md 2024-02-26 16:24:53 +02:00
Yuri Kuznetsov a201f61eeb ref 2024-02-26 15:05:20 +02:00
Yuri Kuznetsov 0ec428b1ed target list mandatoryAttributeList usage 2024-02-26 14:59:03 +02:00
Yuri Kuznetsov a088ca0875 import add field quick search 2024-02-26 14:47:17 +02:00
Yuri Kuznetsov d412766794 fix roles 2024-02-26 13:54:56 +02:00
Yuri Kuznetsov 3cd2a6b74e fix role translations 2024-02-26 13:45:58 +02:00
Yuri Kuznetsov 136ae8ae24 fix link multiple value object factory 2024-02-26 13:28:52 +02:00
Yuri Kuznetsov d80b8ce76b mass link restriction, ref 2024-02-26 13:22:08 +02:00
Yuri Kuznetsov 392616bdd3 ref, deprecate 2024-02-26 12:14:33 +02:00
Yuri Kuznetsov 4d6387e69d duplicateLinkList and ref 2024-02-26 12:04:57 +02:00
Yuri Kuznetsov eebe244247 ref 2024-02-26 11:56:04 +02:00
Yuri Kuznetsov dbfb1c696f role select style 2024-02-26 11:21:53 +02:00
Yuri Kuznetsov 2ed620335f cs 2024-02-26 11:15:09 +02:00
Yuri Kuznetsov 09efbd175d ref 2024-02-26 11:00:45 +02:00
Yuri Kuznetsov e4c67a4a6f fix test 2024-02-25 13:41:07 +02:00
Yuri Kuznetsov e8dd049baf fix test 2024-02-25 12:45:05 +02:00
Yuri Kuznetsov 4c0f3413f3 audit cleanup 2024-02-25 11:21:42 +02:00
Yuri Kuznetsov a052c65b89 fix tests 2024-02-24 14:30:57 +02:00
Yuri Kuznetsov 1bcc81018b fix tests 2024-02-24 12:51:21 +02:00
Yuri Kuznetsov 81ba1b8790 link multiple audited 2024-02-24 10:42:36 +02:00
Yuri Kuznetsov ed946a532e user teams field fix 2024-02-24 10:36:27 +02:00
Yuri Kuznetsov db34e75d1f audited fields 2024-02-24 10:34:49 +02:00
Yuri Kuznetsov bcb588b968 css fix 2024-02-23 17:20:37 +02:00
Yuri Kuznetsov 474e787234 ref 2024-02-23 16:18:21 +02:00
Yuri Kuznetsov 691c62f65d user stream preview size small 2024-02-23 16:17:38 +02:00
Yuri Kuznetsov a3a4d7bf36 fix tests 2024-02-23 16:00:33 +02:00
Yuri Kuznetsov 0bcb9acb02 category entity type metadata params 2024-02-23 11:37:18 +02:00
Yuri Kuznetsov e148b16882 target list ref 2024-02-23 11:05:57 +02:00
Yuri Kuznetsov 3a764fae00 target list opt out ref 2024-02-23 10:43:33 +02:00
Yuri Kuznetsov f46c2d6079 stream followers find refactoring 2024-02-23 10:23:26 +02:00
Yuri Kuznetsov 1847132ded cleanup 2024-02-23 10:14:03 +02:00
Yuri Kuznetsov 5765247f9e followers record service 2024-02-23 10:03:13 +02:00
Yuri Kuznetsov 0ef6c7ed55 cleanup 2024-02-22 22:49:11 +02:00
Yuri Kuznetsov e2e6398026 ref 2024-02-22 22:39:14 +02:00
Yuri Kuznetsov 9cd19228a3 cleanup 2024-02-22 22:37:13 +02:00
Yuri Kuznetsov 4268794990 cleanup 2024-02-22 22:35:17 +02:00
Yuri Kuznetsov de4dcaaecb list rebuild-category-paths 2024-02-22 21:11:40 +02:00
Yuri Kuznetsov b7b1e3056a ref 2024-02-22 20:03:30 +02:00
Yuri Kuznetsov 458a5250f4 recordDefs relationship countDisabled 2024-02-22 20:01:29 +02:00
Yuri Kuznetsov 5cf3856b6a suppress insp 2024-02-22 19:54:47 +02:00
Yuri Kuznetsov 8ddd139111 ref, cleanup 2024-02-22 19:51:26 +02:00
Yuri Kuznetsov 952b94d6fe forceSelectAllAttributes 2024-02-22 19:46:23 +02:00
Yuri Kuznetsov 42e68ecd63 suppress inspection 2024-02-22 18:53:18 +02:00
Yuri Kuznetsov 41fac7ef9d ref 2024-02-22 18:50:13 +02:00
Yuri Kuznetsov 253736870e ref, mandatoryAttributeList 2024-02-22 18:30:16 +02:00
Yuri Kuznetsov 569ff9a81b ref, mandatoryAttributeList 2024-02-22 18:01:37 +02:00
Yuri Kuznetsov 3b17174431 cleanup 2024-02-22 17:43:18 +02:00
Yuri Kuznetsov 52436afda9 ref, docs 2024-02-22 17:34:30 +02:00
Yuri Kuznetsov 531b4cccca cleanup, docs 2024-02-22 16:54:48 +02:00
Yuri Kuznetsov e06544cc0f cleanup 2024-02-22 16:52:03 +02:00
Yuri Kuznetsov c48f4c065c postgres for update fix 2024-02-22 16:29:11 +02:00
Yuri Kuznetsov c4d7a794ea ref 2024-02-22 15:35:53 +02:00
Yuri Kuznetsov e7c777281d ref 2024-02-22 15:30:22 +02:00
Yuri Kuznetsov f687b1543d ref 2024-02-22 15:17:42 +02:00
Yuri Kuznetsov 869bee454d ref 2024-02-22 14:54:13 +02:00
Yuri Kuznetsov 83bcb9176b ref 2024-02-22 14:13:32 +02:00
Yuri Kuznetsov f72c902b6a ref 2024-02-22 14:04:27 +02:00
Yuri Kuznetsov e3f68e1e98 fix tests 2024-02-22 13:55:43 +02:00
Yuri Kuznetsov b002846f7c force append 2024-02-22 13:30:31 +02:00
Yuri Kuznetsov f55cccd7c6 ref 2024-02-22 13:29:15 +02:00
Yuri Kuznetsov 929badd208 ref 2024-02-22 13:02:02 +02:00
Yuri Kuznetsov d347fe66ca suppress inspection implemented 2024-02-22 12:51:32 +02:00
Yuri Kuznetsov 42921ac205 ref 2024-02-22 12:35:18 +02:00
Yuri Kuznetsov 58304ceded ref 2024-02-22 11:40:05 +02:00
Yuri Kuznetsov 0a7d2055be ref 2024-02-22 11:09:17 +02:00
Yuri Kuznetsov 1edc3ead8d ref 2024-02-22 10:50:11 +02:00
dependabot[bot] 231bd7699a Bump phenx/php-svg-lib from 0.5.1 to 0.5.2
Bumps [phenx/php-svg-lib](https://github.com/PhenX/php-svg-lib) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/PhenX/php-svg-lib/releases)
- [Commits](https://github.com/PhenX/php-svg-lib/compare/0.5.1...0.5.2)

---
updated-dependencies:
- dependency-name: phenx/php-svg-lib
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-22 09:38:54 +02:00
Yuri Kuznetsov 4dee2ebb15 relate API option 2024-02-21 18:12:05 +02:00
Yuri Kuznetsov 16f956bdf8 change record create hook order 2024-02-21 16:56:39 +02:00
Yuri Kuznetsov a20ab17236 record update keep entity dirty for after update hook 2024-02-21 16:54:46 +02:00
Yuri Kuznetsov 68c5fe94bf record after hooks 2024-02-21 16:33:47 +02:00
Yuri Kuznetsov 78f536e7f1 ref & deprecations 2024-02-21 16:00:42 +02:00
Yuri Kuznetsov ee408300fd acceptance status direct access disabled 2024-02-21 15:09:10 +02:00
Yuri Kuznetsov 0f146959e5 link field foreign load 2024-02-21 14:08:30 +02:00
Yuri Kuznetsov 449d6a6fcd update test 2024-02-21 13:35:44 +02:00
Yuri Kuznetsov 63afa92fc1 update related fields 2024-02-21 13:25:16 +02:00
Yuri Kuznetsov 2b786af35b email/phone edit mode opt-out invalid cues 2024-02-21 12:33:11 +02:00
Yuri Kuznetsov 231f498eca ref 2024-02-21 12:10:00 +02:00
Yuri Kuznetsov 046aafd97e ref 2024-02-21 12:07:26 +02:00
Yuri Kuznetsov d376847d12 ref 2024-02-21 11:44:41 +02:00
Yuri Kuznetsov befd48d053 dompdf page size in mm 2024-02-21 11:23:52 +02:00
Yuri Kuznetsov ee294f889c ref 2024-02-20 22:33:35 +02:00
Yuri Kuznetsov 5fddac8c6b dashlet autoRefresh method 2024-02-20 16:35:31 +02:00
Yuri Kuznetsov a3d73848a9 ref 2024-02-20 16:31:56 +02:00
Yuri Kuznetsov b829e25f5a email address select isInvalid = false filter 2024-02-20 15:40:26 +02:00
Yuri Kuznetsov 58a6cc1658 clone 2024-02-20 15:29:34 +02:00
Yuri Kuznetsov f7eef2d3c7 ref 2024-02-20 15:25:38 +02:00
Yuri Kuznetsov b5d007c61c ref 2024-02-20 14:03:41 +02:00
Yuri Kuznetsov 8570b6f768 webhook queue items admin ui 2024-02-20 13:22:03 +02:00
Yuri Kuznetsov b02e2f72b6 webhook ui small impr 2024-02-20 12:25:54 +02:00
Yuri Kuznetsov e546509f53 admin panel change 2024-02-20 12:24:26 +02:00
Yuri Kuznetsov 244864c984 menu action items data hyphen key 2024-02-20 11:50:43 +02:00
Yuri Kuznetsov 33af4be469 frontend route specific controller class 2024-02-19 16:28:43 +02:00
Yuri Kuznetsov 29e3470587 stream websocket fix 2024-02-19 14:53:05 +02:00
Yuri Kuznetsov 2b8e764deb Merge branch 'fix' 2024-02-19 14:48:57 +02:00
Yuri Kuznetsov 79f7194429 Merge branch 'fix' 2024-02-19 09:55:18 +02:00
Yuri Kuznetsov ca0625f15e select where converters inCategory, isUserFromTeams 2024-02-19 09:43:43 +02:00
Yuri Kuznetsov 88c9fbd153 ref 2024-02-18 15:33:07 +02:00
Yuri Kuznetsov 7f51b3a31e cleanup 2024-02-17 22:20:58 +02:00
Yuri Kuznetsov ac0b08fdb7 list sticky bar helper 2024-02-17 22:20:06 +02:00
Yuri Kuznetsov de0e5ea72d copy primary filter hash to clipboard 2024-02-17 19:47:11 +02:00
Yuri Kuznetsov e06d60a3c3 color fix 2024-02-17 19:27:58 +02:00
Yuri Kuznetsov 128bfb09ea fix test 2024-02-17 12:56:59 +02:00
Yuri Kuznetsov 7f0283caf8 list with category support primary filter 2024-02-16 17:55:35 +02:00
Yuri Kuznetsov a00cf5e696 entity manager show primary filters 2024-02-16 16:39:35 +02:00
Yuri Kuznetsov 65a9a0db41 detail view as obj read only 2024-02-16 16:36:40 +02:00
Yuri Kuznetsov 8ac98067de jsdocs 2024-02-16 15:02:22 +02:00
Yuri Kuznetsov f725dc395e ref 2024-02-16 14:50:33 +02:00
Yuri Kuznetsov 6e8368c7c5 fix tests 2024-02-16 13:35:39 +02:00
Yuri Kuznetsov ddd9425463 list view primaryFilter uri param 2024-02-16 13:30:49 +02:00
Yuri Kuznetsov 4739cd1510 docs 2024-02-16 12:03:40 +02:00
Yuri Kuznetsov 5a3c977759 jsdoc 2024-02-16 10:44:21 +02:00
Yuri Kuznetsov 85889ab99d fix deprecation 2024-02-16 10:09:05 +02:00
Yuri Kuznetsov a9dc3a62fb remove preferences link 2024-02-16 09:47:05 +02:00
Yuri Kuznetsov c2ddf89747 fix test 2024-02-15 16:30:19 +02:00
Yuri Kuznetsov 9f743b718a custom prefix 2024-02-15 16:20:51 +02:00
Yuri Kuznetsov 0db4a9c672 address fields max length decrease 2024-02-15 14:03:06 +02:00
Yuri Kuznetsov 2dbdb0da60 ref 2024-02-15 13:37:38 +02:00
Yuri Kuznetsov ba59cb1010 enum max length 100 2024-02-15 13:30:34 +02:00
Yuri Kuznetsov ee36f73ec2 enum 100 max length by default 2024-02-15 13:28:25 +02:00
Yuri Kuznetsov abcbabfbd8 varchar max length 100 by default 2024-02-15 12:57:54 +02:00
Yuri Kuznetsov 5be76d2657 triggerSelectOnValidInput by default 2024-02-15 12:14:06 +02:00
Yuri Kuznetsov ddb92f66e7 search ui autocomplete 2024-02-15 12:11:41 +02:00
Yuri Kuznetsov f52759cd00 autocomplete fixes 2024-02-15 12:09:35 +02:00
Yuri Kuznetsov b0d9d7779f ui autocomplete usage 2024-02-15 10:44:42 +02:00
Yuri Kuznetsov 8cd6912fee fix record prev/next if no total 2024-02-15 09:19:44 +02:00
Yuri Kuznetsov bc58ca647d disabled button fix 2024-02-15 09:09:35 +02:00
Yuri Kuznetsov 1456569cf6 ui autocomplete changes 2024-02-14 21:36:20 +02:00
Yuri Kuznetsov e1e7d3d093 link multiple column ui autocomplete usage 2024-02-14 20:57:18 +02:00
Yuri Kuznetsov 495cd0f259 autocomplete email addresses 2024-02-14 16:40:25 +02:00
Yuri Kuznetsov f4371efa1c ui autocomplete 2024-02-14 16:17:07 +02:00
Yuri Kuznetsov d83b05e030 auth log layout 2024-02-14 13:06:38 +02:00
Yuri Kuznetsov bf8267c2a8 move 2024-02-14 13:04:41 +02:00
Yuri Kuznetsov 3bad29ed6d use force settings 2024-02-14 13:01:01 +02:00
Yuri Kuznetsov cbae4d89e4 force and disable list view settings 2024-02-14 12:56:42 +02:00
Yuri Kuznetsov 18f89aebbb update cron-expression 2024-02-14 12:47:33 +02:00
Yuri Kuznetsov c2b4caf723 menu item disabled 2024-02-14 12:14:42 +02:00
Yuri Kuznetsov c5f3a9e366 Merge branch 'fix' 2024-02-14 11:54:19 +02:00
Yuri Kuznetsov 54de942e7f modal clear on close 2024-02-14 11:17:14 +02:00
Yuri Kuznetsov 0093bf9b79 fix 2024-02-14 11:08:43 +02:00
Yuri Kuznetsov 8e9dcb5d62 role add field ignore fields 2024-02-14 11:04:52 +02:00
Yuri Kuznetsov 38e909dfca role add field focus 2024-02-14 10:57:27 +02:00
Yuri Kuznetsov 6b0276dc22 role: add multiple fields 2024-02-14 10:52:22 +02:00
Yuri Kuznetsov 0d19dfa7b8 role add field quick search 2024-02-13 19:51:18 +02:00
Yuri Kuznetsov 13052b2969 log failed queries 2024-02-13 16:52:36 +02:00
Yuri Kuznetsov 1f9de30ff0 import step2 route change 2024-02-13 15:15:58 +02:00
Yuri Kuznetsov 5b708c1d8d import underscore match 2024-02-13 15:03:47 +02:00
Yuri Kuznetsov ed92d68317 Merge branch 'fix' 2024-02-13 14:38:41 +02:00
Yuri Kuznetsov 330fccad25 email address insert fix 2024-02-13 14:06:39 +02:00
Rabii Brahimi 14243b5ef7 Remove Duplication 2024-02-13 14:06:31 +02:00
Yuri Kuznetsov 9c702814b2 onlyMy filter 2024-02-13 13:05:54 +02:00
Yuri Kuznetsov ba7acc5443 ref 2024-02-13 12:47:18 +02:00
Yuri Kuznetsov 10557ca1ec load accountIsInactive on list view 2024-02-13 12:19:04 +02:00
Rabii Brahimi 2085701516 Update Layout index.tpl 2024-02-13 11:14:14 +02:00
Yuri Kuznetsov 88ba56618e formula today honot default timezone 2024-02-13 11:00:37 +02:00
Yuri Kuznetsov c35545c209 label manager quick search 2024-02-12 15:05:11 +02:00
Yuri Kuznetsov 585a859340 ref 2024-02-12 14:10:41 +02:00
Yuri Kuznetsov cf214de06c Merge branch 'fix' 2024-02-12 12:08:37 +02:00
Yuri Kuznetsov 2f14c49215 ref 2024-02-12 11:40:40 +02:00
Yuri Kuznetsov 72e68e1a6f ref 2024-02-12 10:33:39 +02:00
Yuri Kuznetsov 5ff535cab1 ref 2024-02-12 10:16:17 +02:00
Yuri Kuznetsov 90e6acf8b9 lang fix 2024-02-12 10:15:04 +02:00
Yuri Kuznetsov e5e29101fd web socket wait interval 2024-02-11 16:46:19 +02:00
Yuri Kuznetsov 47735aaa0b email attachment show alert 2024-02-11 10:08:42 +02:00
Yuri Kuznetsov 43eb2f8d36 date picker assumeNearbyYear 2024-02-10 22:33:39 +02:00
Yuri Kuznetsov 1d3c0074d4 ref 2024-02-10 19:14:03 +02:00
Yuri Kuznetsov e8f07e0765 supresses 2024-02-10 18:35:55 +02:00
Yuri Kuznetsov 54216709b2 text field audited 2024-02-10 15:30:34 +02:00
Yuri Kuznetsov 9f6f034f97 cs 2024-02-10 14:38:23 +02:00
Yuri Kuznetsov e0c74aa2ad fix docs 2024-02-10 11:37:41 +02:00
Yuri Kuznetsov c083e1b97d clear attribute function 2024-02-10 09:43:36 +02:00
Yuri Kuznetsov c4078ed8f1 fix doc 2024-02-10 09:10:59 +02:00
Yuri Kuznetsov 4001e40613 rename 2024-02-09 16:03:09 +02:00
Yuri Kuznetsov a19deac279 error msg 2024-02-09 14:30:54 +02:00
Yuri Kuznetsov f655e543b1 websocket ping 2024-02-09 14:15:20 +02:00
Yuri Kuznetsov 5031e7f430 fix 2024-02-09 13:28:16 +02:00
Yuri Kuznetsov 7f75ee6ed8 websocket re-subscribe on connection restore 2024-02-09 12:33:54 +02:00
Yuri Kuznetsov bde2e0284a ws keep alive 2024-02-09 10:24:09 +02:00
Yuri Kuznetsov 026826fc84 preferences tab fields translations 2024-02-08 17:40:23 +02:00
Yuri Kuznetsov c5f5d88f75 style enum color 2024-02-08 17:15:08 +02:00
Yuri Kuznetsov 3ae4478a70 schema fix 2024-02-08 16:01:55 +02:00
Yuri Kuznetsov 246ece8e3d audit log 2024-02-08 15:53:01 +02:00
Yuri Kuznetsov 2681acebc6 fix schema 2024-02-08 15:50:27 +02:00
Yuri Kuznetsov a611301c5a css fix 2024-02-08 13:29:22 +02:00
Yuri Kuznetsov 3f2ffb851f ref 2024-02-08 10:24:08 +02:00
Yuri Kuznetsov daa37961e4 tryGetForeignEntityType 2024-02-08 09:59:12 +02:00
Yuri Kuznetsov 66b336279a layout css change 2024-02-07 16:47:32 +02:00
Yuri Kuznetsov c99804621d remove labels from tempalte detail layouts 2024-02-07 16:44:46 +02:00
Yuri Kuznetsov 2ebbc942d3 RDBRelation generic 2024-02-07 15:56:56 +02:00
Yuri Kuznetsov b81d6962ae cs 2024-02-07 15:43:22 +02:00
Yuri Kuznetsov dc89f75678 translatable panel note 2024-02-07 14:12:46 +02:00
Yuri Kuznetsov 1ccd70b3fc panel notes 2024-02-07 13:28:20 +02:00
Yuri Kuznetsov 0b3002979e alert content style 2024-02-07 13:26:01 +02:00
Yuri Kuznetsov 25dfa76807 merge 2024-02-07 11:58:36 +02:00
Yuri Kuznetsov 46760ccfba calendar suppress loading alert 2024-02-06 15:44:57 +02:00
Yuri Kuznetsov 214a32c472 preferences: hide panel 2024-02-06 13:34:52 +02:00
Yuri Kuznetsov ee6a4607d8 fix 2024-02-06 13:29:23 +02:00
Yuri Kuznetsov 5a3b3ab2e8 url tab 2024-02-06 13:20:50 +02:00
Yuri Kuznetsov 5d5000fbbd url not optional protocol 2024-02-06 13:18:43 +02:00
Yuri Kuznetsov 554668f1bd url reg exp 2024-02-06 13:18:24 +02:00
Yuri Kuznetsov 7ff8b1ecee fix validation msg 2024-02-06 10:41:40 +02:00
Yuri Kuznetsov 0858b845fb ref 2024-02-06 10:33:56 +02:00
Yuri Kuznetsov d480113b90 cs 2024-02-06 10:24:16 +02:00
Yuri Kuznetsov 8f8370b5bc jsdoc fix 2024-02-06 10:24:11 +02:00
Yuri Kuznetsov cfcc1b06f9 calendar scroll hour 2024-02-06 09:57:03 +02:00
Yuri Kuznetsov 7dbb842085 field generics 2024-02-06 09:36:55 +02:00
Yuri Kuznetsov 76bb7d3e49 cs 2024-02-06 09:15:47 +02:00
Yuri Kuznetsov 3d79861ffb options 0 fix 2024-02-06 09:11:43 +02:00
Yuri Kuznetsov 236942c902 preferences layout 2024-02-06 09:00:48 +02:00
Yuri Kuznetsov 3efe0a0fe0 mailto: cut body length 2024-02-06 08:30:21 +02:00
Yuri Kuznetsov 9d933a5d95 mailto error fix 2024-02-06 08:22:42 +02:00
Yuri Kuznetsov 24eb879352 ref mailto 2024-02-05 21:58:56 +02:00
Yuri Kuznetsov f0141cd725 remove phpstan ignore 2024-02-05 19:41:11 +02:00
Yuri Kuznetsov 9a82bc7c5a cs 2024-02-05 19:38:05 +02:00
Yuri Kuznetsov b42bfefef9 signature codeview 2024-02-05 18:20:51 +02:00
Yuri Kuznetsov 47e881af60 ref 2024-02-05 17:44:42 +02:00
Yuri Kuznetsov 442284fee2 enum label in link mode 2024-02-05 17:28:18 +02:00
Yuri Kuznetsov 49a6454999 middle dot usage 2024-02-05 17:05:47 +02:00
Yuri Kuznetsov a95e52a10c checkFilePermissions command 2024-02-05 16:20:09 +02:00
Yuri Kuznetsov b2f1f00875 ref 2024-02-05 16:19:07 +02:00
Yuri Kuznetsov 91b50cdcc4 typo 2024-02-05 16:07:51 +02:00
Yuri Kuznetsov 078bd7c80e ref 2024-02-05 15:58:48 +02:00
Yuri Kuznetsov 7641918224 image entryPoint ref 2024-02-05 15:24:41 +02:00
Yuri Kuznetsov a90198d50e composer email pass accountId 2024-02-05 14:53:54 +02:00
Yuri Kuznetsov dcff1748b7 email full form fix dialog issue 2024-02-05 14:13:23 +02:00
Yuri Kuznetsov 5f903d8ce2 email/phone not null performance 2024-02-05 14:10:49 +02:00
Yuri Kuznetsov 92fdea37d1 fix 2024-02-05 13:40:36 +02:00
Yuri Kuznetsov 7e59fafb3f cs ref 2024-02-05 13:17:52 +02:00
Yuri Kuznetsov ae58224f95 email search null 2024-02-05 13:14:15 +02:00
Yuri Kuznetsov 857c5eee6f ref 2024-02-05 13:14:07 +02:00
Yuri Kuznetsov adb7f876aa email address select 2024-02-05 12:41:24 +02:00
Yuri Kuznetsov 6b282c378a jsdoc fix 2024-02-05 09:51:22 +02:00
Yuri Kuznetsov aaca0fc47b add title 2024-02-05 09:38:48 +02:00
Yuri Kuznetsov 4681493b58 suppress inspection 2024-02-05 09:36:03 +02:00
Yuri Kuznetsov 37b0c15c1a ref 2024-02-04 14:57:28 +02:00
Yuri Kuznetsov f7c29ef4e6 wysiwyg disable dnd 2024-02-03 18:11:39 +02:00
Yuri Kuznetsov 15c08c347d renaming 2024-02-03 16:48:20 +02:00
Yuri Kuznetsov 4bf5f85644 email address do not search in portal users 2024-02-03 16:47:20 +02:00
Yuri Kuznetsov dfe09dac0e ref 2024-02-03 16:44:38 +02:00
Yuri Kuznetsov ce26ecc8c1 calendar: fix loading notify 2024-02-03 15:07:23 +02:00
Yuri Kuznetsov 356971cc66 calendar scroll hour 8 if duration is 15 2024-02-03 15:03:13 +02:00
Yuri Kuznetsov 82413cd3fd calendar slot duration 1h 2024-02-03 15:00:22 +02:00
Yuri Kuznetsov f07f3de1bd settings layout 2024-02-03 14:47:07 +02:00
Yuri Kuznetsov 33072072c4 ref cs 2024-02-03 13:52:37 +02:00
Yuri Kuznetsov 94351646b1 add ext-ctype 2024-02-03 13:42:30 +02:00
Yuri Kuznetsov c766465527 dashlet chart no overflow hidden 2024-02-03 12:40:35 +02:00
Yuri Kuznetsov b982ab9daf ref 2024-02-03 10:26:48 +02:00
Yuri Kuznetsov 114682b49f cs 2024-02-03 09:25:24 +02:00
Yuri Kuznetsov 0e5dcb0d40 email queue item fixes 2024-02-02 18:21:12 +02:00
Yuri Kuznetsov 3f491f1a9a Merge branch 'fix' 2024-02-02 16:37:51 +02:00
Yuri Kuznetsov 62494e9c12 ref 2024-02-02 16:19:15 +02:00
Yuri Kuznetsov c88e34fe8f Merge branch 'fix' 2024-02-02 16:09:58 +02:00
Yuri Kuznetsov 2f3c775d4f calendar: scroll to now 2024-02-02 16:08:01 +02:00
Yuri Kuznetsov 7078efcc20 calendar: do not add 30 mins 2024-02-02 14:54:40 +02:00
Yuri Kuznetsov e73eb87374 preferences ctrl+s 2024-02-02 14:49:34 +02:00
Yuri Kuznetsov 471a209d86 ref 2024-02-02 14:47:44 +02:00
Yuri Kuznetsov fabb88d611 prefernces: calendar slot duration 2024-02-02 14:40:17 +02:00
Yuri Kuznetsov d7d7752868 enum-int/float support null 2024-02-02 14:03:21 +02:00
Yuri Kuznetsov 0fe9041272 preferences layout change 2024-02-02 13:47:24 +02:00
Yuri Kuznetsov 860680aaa1 fix formula function return type 2024-02-01 18:10:24 +02:00
Yuri Kuznetsov 1640bdf172 Merge branch 'fix' 2024-02-01 16:22:12 +02:00
Yuri Kuznetsov 9a1495199b Merge branch 'fix' 2024-02-01 11:52:00 +02:00
Yuri Kuznetsov 15d264acce merge 2024-02-01 11:01:13 +02:00
Yuri Kuznetsov 959e8d3acc Merge branch 'fix' 2024-01-31 15:24:26 +02:00
Yuri Kuznetsov b2edf702ce role: store in memory 2024-01-31 12:58:46 +02:00
Yuri Kuznetsov 4837474bb0 role table dropdown hiding fix 2024-01-31 12:30:22 +02:00
Yuri Kuznetsov b052eacba7 role table do not show not-set as no 2024-01-31 12:27:59 +02:00
Yuri Kuznetsov 0129305c5f portal role table fix 2024-01-31 12:17:15 +02:00
Yuri Kuznetsov 5a725b79c9 entity manager list module 2024-01-31 12:10:06 +02:00
Yuri Kuznetsov c4f706e918 role table: group by module 2024-01-31 11:58:22 +02:00
Yuri Kuznetsov 9673f09c9f role table style fix 2024-01-31 11:04:40 +02:00
Yuri Kuznetsov 6a84ccbd4e Merge branch 'fix' 2024-01-30 18:11:32 +02:00
Yuri Kuznetsov 14587ee65c wysiwyg: hide attach button in inlide edit 2024-01-30 16:39:12 +02:00
Yuri Kuznetsov ef2d129699 ref 2024-01-30 16:34:35 +02:00
Yuri Kuznetsov 580c0bef0a ref 2024-01-30 14:29:43 +02:00
Yuri Kuznetsov eef7fef69b cs 2024-01-30 14:16:52 +02:00
Yuri Kuznetsov 4d1776f9ff date filter between range 2024-01-30 13:20:27 +02:00
Yuri Kuznetsov f92c21c9c0 ref 2024-01-30 12:40:10 +02:00
Yuri Kuznetsov fac8730ddd cs 2024-01-30 12:36:25 +02:00
Yuri Kuznetsov a3fe58f61b update phpstan 2024-01-30 11:40:31 +02:00
Yuri Kuznetsov 696a25fe82 update symfony libs 2024-01-30 11:01:05 +02:00
Yuri Kuznetsov 04b28dc88f pass date: true 2024-01-29 18:15:27 +02:00
Yuri Kuznetsov abbffb9b15 date filters time zone 2024-01-29 16:45:15 +02:00
Yuri Kuznetsov 1cd914e5a7 ref 2024-01-29 10:59:52 +02:00
Yuri Kuznetsov 6b7bf55acb cs 2024-01-29 10:56:59 +02:00
Yuri Kuznetsov eddcb797e4 catching exception 2024-01-29 10:42:04 +02:00
Yuri Kuznetsov 3014e9253b phpdocs, cs 2024-01-29 10:19:20 +02:00
Yuri Kuznetsov 016489ffba ref, cs 2024-01-29 10:16:25 +02:00
Yuri Kuznetsov 96ea9e225c date-time transformer default time zone 2024-01-29 10:12:14 +02:00
Yuri Kuznetsov c4cfc204e7 date time transformer interface 2024-01-28 17:08:48 +02:00
Yuri Kuznetsov 00f5433518 fix role validation 2024-01-28 12:45:22 +02:00
Yuri Kuznetsov 3077589cff todo 2024-01-27 19:58:15 +02:00
Yuri Kuznetsov 3e3258a4b7 cs ref 2024-01-27 19:55:43 +02:00
Yuri Kuznetsov dee0f9937e role create update test 2024-01-27 19:53:23 +02:00
Yuri Kuznetsov 1138a4deb1 role, validate field exists 2024-01-27 19:53:14 +02:00
Yuri Kuznetsov 720b14b804 roles ui ref 2024-01-27 18:38:53 +02:00
Yuri Kuznetsov 196f328312 role not modified fix 2024-01-27 18:38:53 +02:00
Yuri Kuznetsov 1eb7215162 ref 2024-01-27 18:38:53 +02:00
Yuri Kuznetsov 52762cc738 roles validation 2024-01-27 18:38:53 +02:00
Yuri Kuznetsov c3c38e3510 Update README.md 2024-01-27 14:12:09 +02:00
Yuri Kuznetsov 5dcb112621 Update CONTRIBUTING.md 2024-01-27 14:09:38 +02:00
Yuri Kuznetsov 3a9e5fc0cd Update README.md 2024-01-27 14:08:06 +02:00
Yuri Kuznetsov a789fabe2e Update CONTRIBUTING.md 2024-01-27 14:06:53 +02:00
Yuri Kuznetsov 6c8f5e8a16 Update README.md 2024-01-27 13:54:54 +02:00
Yuri Kuznetsov cf08bbdd00 disalbe field level for template 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 80a7765fdd role permissions style 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 119948938e fix role add field 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov b9563cfdc0 acl field level disabled param 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 97e9786fa6 translation 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 60a4541e24 role ui impr 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 52ae19b896 style fix 2024-01-27 12:30:21 +02:00
Yuri Kuznetsov 8973e976ca Update CONTRIBUTING.md 2024-01-26 22:58:50 +02:00
Yuri Kuznetsov 5ebee4bec7 roles quick search 2024-01-26 15:23:32 +02:00
Yuri Kuznetsov c34b2acf9b cs 2024-01-26 15:07:37 +02:00
Yuri Kuznetsov cd400e5090 ref 2024-01-26 14:44:14 +02:00
Yuri Kuznetsov b433538ab2 link-parent: autocomplete on empty input 2024-01-26 14:20:26 +02:00
Yuri Kuznetsov 0a8cc398fe ref cs 2024-01-26 13:42:25 +02:00
Yuri Kuznetsov a8e37d9486 oidc: nonce and state longer 2024-01-26 13:36:56 +02:00
Yuri Kuznetsov 288b017355 sanitizers 2024-01-26 13:02:49 +02:00
Yuri Kuznetsov 91745580d8 module route order 2024-01-26 11:34:33 +02:00
Yuri Kuznetsov d0d652dba9 route overriding 2024-01-26 11:12:17 +02:00
Yuri Kuznetsov 96f9f89b7b cs 2024-01-26 11:11:52 +02:00
Yuri Kuznetsov 2f093011a2 ref and cleanup 2024-01-26 11:06:52 +02:00
Yuri Kuznetsov cfe55c1975 task list view layout change 2024-01-26 10:34:50 +02:00
Yuri Kuznetsov 42dc0d754f schema 2024-01-25 17:28:11 +02:00
Yuri Kuznetsov 1623257b17 auth log method full list 2024-01-25 16:28:02 +02:00
Yuri Kuznetsov 3f27256589 auth log more fields 2024-01-25 16:21:39 +02:00
Yuri Kuznetsov 52c34b6d35 Merge branch 'fix' 2024-01-25 16:13:11 +02:00
Yuri Kuznetsov 485bcfc039 alert style 2024-01-25 11:48:53 +02:00
Yuri Kuznetsov 1cbcf7048c color fix 2024-01-25 11:41:08 +02:00
Yuri Kuznetsov 4d90aec5a6 orm: clear query composer seed cache on metadata update 2024-01-25 11:28:33 +02:00
Yuri Kuznetsov 85b2a72624 msg change 2024-01-24 16:36:28 +02:00
Yuri Kuznetsov acd5d78d30 import: relate by foreign field 2024-01-24 16:23:57 +02:00
Yuri Kuznetsov c81e4a8194 currency not modified fix 2024-01-24 15:23:06 +02:00
Yuri Kuznetsov 81fcd57e3a ref 2024-01-24 14:38:06 +02:00
Yuri Kuznetsov 6dd940cfab import ref 2024-01-24 14:26:15 +02:00
Yuri Kuznetsov a1bdb6c308 send test email error message translation 2024-01-24 12:19:21 +02:00
Yuri Kuznetsov 525397e64d config override 2024-01-24 11:36:32 +02:00
Yuri Kuznetsov e4af67aa68 ref 2024-01-24 10:44:24 +02:00
Yuri Kuznetsov 2d7d8812fd Merge branch 'fix' 2024-01-23 19:59:37 +02:00
Yuri Kuznetsov 726ecefd55 array focus on main element 2024-01-23 14:10:47 +02:00
Yuri Kuznetsov 69fbf9d1ad not read emails bolder font 2024-01-23 13:43:32 +02:00
Yuri Kuznetsov 38e89f4e4d table border changes wysiwyg 2024-01-23 13:20:23 +02:00
Yuri Kuznetsov b3ff273b7c ref 2024-01-23 11:29:49 +02:00
Yuri Kuznetsov fb0be72b56 clearnup 2024-01-23 11:20:02 +02:00
Yuri Kuznetsov 339fbffbb7 wysiwyg param to disable code editor 2024-01-23 11:11:06 +02:00
Yuri Kuznetsov 5c308bb60c wysiwyg: remove beautifier 2024-01-23 11:02:50 +02:00
Yuri Kuznetsov 514fe6e98d wysiwyg: disable prettifyHtml 2024-01-23 10:53:02 +02:00
Yuri Kuznetsov a80d7fddba try catch gotoline 2024-01-23 10:38:07 +02:00
Yuri Kuznetsov ec11a89496 pdf template: add created at filter 2024-01-23 10:23:47 +02:00
Yuri Kuznetsov 61aa5f907d fix 2024-01-22 21:21:40 +02:00
Yuri Kuznetsov ac7ba173cd htmlizer fix iterate and test 2024-01-22 20:12:29 +02:00
Yuri Kuznetsov fe7a764935 ref 2024-01-22 19:51:00 +02:00
Yuri Kuznetsov c1190d348b Merge branch 'master' into f/iterate 2024-01-22 16:40:47 +02:00
Yuri Kuznetsov a81c8518b8 wysiwyg code view improvements 2024-01-22 15:56:26 +02:00
Yuri Kuznetsov d7f533118a naming 2024-01-22 11:18:10 +02:00
Yuri Kuznetsov 252fdc4208 cs 2024-01-22 09:22:40 +02:00
Yuri Kuznetsov c1d28655da template iterate 2024-01-21 18:26:39 +02:00
Yuri Kuznetsov 77c2e8abc4 Merge branch 'fix' 2024-01-20 21:37:25 +02:00
Yuri Kuznetsov b6179463b1 style completion 2024-01-20 20:11:05 +02:00
Yuri Kuznetsov 99bd7ae437 pdf template style 2024-01-20 19:37:15 +02:00
Yuri Kuznetsov e968388ba7 wysiwyg codeview min height 2024-01-20 18:56:59 +02:00
Yuri Kuznetsov 60be576f9d Merge branch 'fix' 2024-01-18 15:07:38 +02:00
Yuri Kuznetsov 47249776a0 ref 2024-01-17 13:05:00 +02:00
Yuri Kuznetsov c8f4fa437d ref 2024-01-17 12:41:55 +02:00
Yuri Kuznetsov 09c1b575a7 ref 2024-01-17 12:32:17 +02:00
Yuri Kuznetsov 2437b0d901 Merge branch 'fix' 2024-01-17 10:28:38 +02:00
Yuri Kuznetsov 0a33ad6542 remove CURLOPT_BINARYTRANSFER usage 2024-01-16 17:57:55 +02:00
Yuri Kuznetsov 7ee626edf8 select field handler pass model 2024-01-16 17:29:29 +02:00
Yuri Kuznetsov 600b58be75 select handler order 2024-01-16 17:27:43 +02:00
Yuri Kuznetsov 5601704ac1 Merge branch 'fix' 2024-01-16 17:01:18 +02:00
Yuri Kuznetsov 4eb6386b6e stream super parent performance impr 2024-01-16 10:12:33 +02:00
Yuri Kuznetsov 9c78970712 layoutIgnoreList 2024-01-16 09:50:05 +02:00
Yuri Kuznetsov e465e25adb syle fix 2024-01-15 17:04:02 +02:00
Yuri Kuznetsov 4d735e9e26 user stream activity 2024-01-15 16:19:53 +02:00
Yuri Kuznetsov 28bc720bbc rename 2024-01-15 16:19:21 +02:00
Yuri Kuznetsov 0fc170e1c3 ref 2024-01-15 15:42:47 +02:00
Yuri Kuznetsov 012d98d303 ref 2024-01-15 15:39:39 +02:00
Yuri Kuznetsov 180bc99726 Merge branch 'fix' 2024-01-15 13:29:24 +02:00
Yuri Kuznetsov e537d64c5b user bottom panels layout 2024-01-15 13:09:28 +02:00
Yuri Kuznetsov 03de09c836 user stream panel in layout manager 2024-01-15 12:03:15 +02:00
Yuri Kuznetsov 9dc309390a cs 2024-01-15 12:02:32 +02:00
Yuri Kuznetsov 8280f31180 global stream optimization 2024-01-15 11:44:37 +02:00
Yuri Kuznetsov 61a1227f87 user stream ref, add index 2024-01-15 11:18:06 +02:00
Yuri Kuznetsov 02c37924aa created complex impr 2024-01-15 10:09:25 +02:00
Yuri Kuznetsov ddc4baf5e2 Merge branch 'fix' 2024-01-15 09:58:34 +02:00
Yuri Kuznetsov 63f975516a note fix 2024-01-14 18:53:27 +02:00
Yuri Kuznetsov 9160c8319d global stream optimization 2024-01-14 18:47:37 +02:00
Yuri Kuznetsov d268b0335e global stream 2024-01-14 14:08:43 +02:00
Yuri Kuznetsov 6b355c645c Merge branch 'fix' 2024-01-14 11:14:50 +02:00
Yuri Kuznetsov 951e981d8e stream posts optimization 2024-01-13 15:35:26 +02:00
Yuri Kuznetsov c4c301d363 Merge branch 'fix' 2024-01-13 12:35:56 +02:00
Yuri Kuznetsov 50821924f2 field validation popover fix 2024-01-13 12:29:20 +02:00
Yuri Kuznetsov 3c01011c28 cs 2024-01-13 12:00:53 +02:00
Yuri Kuznetsov d674176356 stream refresh btn impr 2024-01-13 11:33:01 +02:00
Yuri Kuznetsov 8c60396197 spin animation 2024-01-13 11:32:23 +02:00
Yuri Kuznetsov 4a5b442f35 stream ui changes 2024-01-13 11:12:35 +02:00
Yuri Kuznetsov 80ea398660 add note index type 2024-01-13 11:00:06 +02:00
Yuri Kuznetsov 69aae1abfa comment 2024-01-12 18:03:50 +02:00
Yuri Kuznetsov c528a98820 stream comment and ref 2024-01-12 17:39:48 +02:00
Yuri Kuznetsov 89fa12c6db ref 2024-01-12 17:25:56 +02:00
Yuri Kuznetsov 34598d73a3 ref 2024-01-12 16:55:52 +02:00
Yuri Kuznetsov c507aeae4a ref 2024-01-12 16:35:38 +02:00
Yuri Kuznetsov 356ce3cc42 stream user service ref 2024-01-12 16:02:11 +02:00
Yuri Kuznetsov 560f145324 add indexes 2024-01-12 15:29:31 +02:00
Yuri Kuznetsov 4308fb3f9b ref stream user record service 2024-01-12 15:29:22 +02:00
Yuri Kuznetsov a17b66c6dc revert regexp fix 2024-01-12 14:38:31 +02:00
Yuri Kuznetsov f52a3ba773 ref cs 2024-01-12 13:53:54 +02:00
Yuri Kuznetsov f865338ad0 comment 2024-01-12 13:36:36 +02:00
Yuri Kuznetsov 7221207fe5 user stream query change 2024-01-12 13:16:47 +02:00
Yuri Kuznetsov cbc61b533f ref 2024-01-12 13:11:17 +02:00
Yuri Kuznetsov bdff8767f7 stream user query impr 2024-01-12 13:10:09 +02:00
Yuri Kuznetsov 26f3a9215d user stream service ref 2024-01-12 11:39:52 +02:00
Yuri Kuznetsov 15e34647fb ref stream service 2024-01-12 11:19:46 +02:00
Yuri Kuznetsov d121aa5a9f ref 2024-01-12 10:51:07 +02:00
Yuri Kuznetsov 7d77f754c5 ref 2024-01-12 10:13:45 +02:00
Yuri Kuznetsov 2012c4d161 select ref 2024-01-12 10:05:44 +02:00
Yuri Kuznetsov fed9ede878 Merge branch 'fix' 2024-01-11 19:26:38 +02:00
Yuri Kuznetsov 4b12716961 calendar loading 2024-01-11 17:06:28 +02:00
Yuri Kuznetsov db2f387a77 cs 2024-01-11 17:03:27 +02:00
Yuri Kuznetsov cb972fdf17 entity: assoc array to stdClass 2024-01-11 16:47:37 +02:00
Yuri Kuznetsov 5c34d57012 ref 2024-01-11 16:38:17 +02:00
Yuri Kuznetsov 3906aa245c ref 2024-01-11 16:36:37 +02:00
Yuri Kuznetsov c86daf3a68 cs 2024-01-11 16:23:47 +02:00
Yuri Kuznetsov 9bafd81093 phone/email set data make first primary 2024-01-11 16:11:14 +02:00
Yuri Kuznetsov 5305a27c60 ref 2024-01-11 15:19:41 +02:00
Yuri Kuznetsov 6b30ca05db compose email address for base plus 2024-01-11 13:39:19 +02:00
Yuri Kuznetsov b99c17c7cd cs 2024-01-11 12:35:50 +02:00
Yuri Kuznetsov fabaccd3da case compose email support person 2024-01-11 12:14:28 +02:00
Yuri Kuznetsov 48c0ae93f4 cs 2024-01-11 12:11:19 +02:00
Yuri Kuznetsov 30768071bf cs 2024-01-11 11:50:34 +02:00
Yuri Kuznetsov 68b619e276 ui impr 2024-01-11 11:15:06 +02:00
Yuri Kuznetsov d5a441b0e8 confirm messages 2024-01-11 10:54:55 +02:00
Yuri Kuznetsov a5ed0864be ref 2024-01-11 10:40:56 +02:00
Yuri Kuznetsov 7db9fe46ff confirm msg 2024-01-11 10:24:42 +02:00
Yuri Kuznetsov 99df1bfbaa cs 2024-01-11 10:16:29 +02:00
Yuri Kuznetsov 067a4a95e0 ref 2024-01-11 10:11:08 +02:00
Yuri Kuznetsov 2154a51831 link manager: delete labels 2024-01-11 09:58:42 +02:00
Yuri Kuznetsov f0bc58e289 fix schema 2024-01-10 15:39:53 +02:00
Yuri Kuznetsov 5fd2f15a5d selectOrderBy 2024-01-10 15:33:36 +02:00
Yuri Kuznetsov baeef22f4c Merge branch 'fix' 2024-01-10 15:27:37 +02:00
Yuri Kuznetsov 2f6fef0817 Merge branch 'fix' 2024-01-10 14:20:43 +02:00
Yuri Kuznetsov 9cc97c44d5 fix schema doc 2024-01-08 16:31:22 +02:00
Yuri Kuznetsov 6350e881da cs 2024-01-08 14:14:29 +02:00
Yuri Kuznetsov ec5a799b31 cs 2024-01-08 13:24:07 +02:00
Yuri Kuznetsov 026238b125 reset order on field deletion 2024-01-07 19:42:45 +02:00
Yuri Kuznetsov 46712cd967 ref 2024-01-07 19:36:15 +02:00
Yuri Kuznetsov 273ca15c17 ref 2024-01-07 18:27:37 +02:00
Yuri Kuznetsov 94d8a6039e cs 2024-01-07 18:23:33 +02:00
Yuri Kuznetsov 61fde5ed42 scheduled jobs timezone 2024-01-07 16:19:29 +02:00
Yuri Kuznetsov 27a0127556 cs 2024-01-07 15:41:20 +02:00
Yuri Kuznetsov 585fedd824 extension upload size warning 2024-01-07 12:17:39 +02:00
Yuri Kuznetsov 49ea990519 dialog-confirm class by default 2024-01-07 12:16:46 +02:00
Yuri Kuznetsov 31e06538a2 jsdoc fix 2024-01-07 12:11:04 +02:00
Yuri Kuznetsov 22657f030c ref 2024-01-07 11:52:03 +02:00
Yuri Kuznetsov 3805ecca02 cs 2024-01-07 11:13:54 +02:00
Yuri Kuznetsov 31ddef5ddb cs 2024-01-07 11:10:37 +02:00
Yuri Kuznetsov 6b4d3e5bbd cs 2024-01-06 19:41:04 +02:00
Yuri Kuznetsov acaeb46d5f cs, ref 2024-01-06 13:41:11 +02:00
Yuri Kuznetsov ce70c3b62a fix 2024-01-06 13:40:48 +02:00
Yuri Kuznetsov 55ff63ffeb ref 2024-01-06 13:22:05 +02:00
2018 changed files with 76154 additions and 41358 deletions
+17 -14
View File
@@ -1,25 +1,28 @@
## Issues
When reporting a possible bug, provide detail steps so that we will be able
to reproduce the issue. Steps to reproduce should be clear and unambiguous. Try not to use phrases like "very big bug",
"huge issue", "useless feature", etc. No need to use exclamation marks as well.
Note that we don't provide developer help or any kind of support on GitHub.
For this, please use our [forum](https://forum.espocrm.com).
If you are very new to EspoCRM, it's probable that an issue you ran into is not a bug.
Consider creating a topic on our [forum](https://forum.espocrm.com/forum/general) instead.
The issue tracker is for the benefit of the EspoCRM project. The project maintainers are going to handle issues in the project's best interest.
The maintainers have right to close issues without explanation.
## Pull Requests
We are open for contributions that are bug fixes and small improvements. If you would like to contribute something that is not a small fix, please reach out to maintainers before submitting your PR (by creating a GitHub issue).
Before we can merge your pull request, you need to accept our CLA [here](https://github.com/espocrm/cla).
It's desirable that one PR solves one specific problem. Do not include code style changes to PRs
(unless the main purpose of the PR is a code style fix).
If you would like to contribute something that is not a small fix, it's reasonable to create an issue first
(a bug report or feature request).
Branches:
* *master* the develop branch; new features should be pushed to here;
* *fix* the upcoming maintenance release; small fixes should be pushed to here.
## Issues
We'd appreciate if you prefer posting issues on weekdays rather than weekends.
When reporting a possible bug, please provide detail steps so that we will be able
to reproduce the issue. Please try not to use phrases like "very big bug",
"huge issue", etc. No need to use exclamation marks as well.
Note that we don't provide developer help or any kind of support on GitHub.
For this, please use our [forum](https://forum.espocrm.com).
+1 -1
View File
@@ -1,6 +1,6 @@
---
name: Feature request
about: Suggest an idea for EspoCRM. For high-level features, consider creating feature requests on the forum. For low-level (framework) here on GitHub.
about: For high-level features, create feature requests on our forum. For low-level (framework) here on GitHub.
title: ''
labels: ''
assignees: ''
+2
View File
@@ -5,6 +5,8 @@
/data/.backup/*
/data/config.php
/data/config-internal.php
/data/config-override.php
/data/config-internal-override.php
/data/tmp/*
/build
/node_modules
-2
View File
@@ -17,8 +17,6 @@
<codeStyleSettings language="PHP">
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
<option name="CATCH_ON_NEW_LINE" value="true" />
<option name="FINALLY_ON_NEW_LINE" value="true" />
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<option name="ALIGN_MULTILINE_FOR" value="false" />
<option name="METHOD_PARAMETERS_RPAREN_ON_NEXT_LINE" value="true" />
+1
View File
@@ -3,6 +3,7 @@
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="ES6ConvertLetToConst" enabled="true" level="WEAK WARNING" enabled_by_default="true" editorAttributes="INFO_ATTRIBUTES" />
<inspection_tool class="HtmlUnknownAnchorTarget" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="JSIgnoredPromiseFromCall" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PhpDocMissingThrowsInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PhpDocSignatureIsNotCompleteInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+1
View File
@@ -3,5 +3,6 @@
<component name="PhpEntryPointsManager">
<pattern value="\Espo\Controllers\*" member="*Action*" />
<pattern value="\Espo\Modules\*\Controllers\*" member="*Action*" />
<suppressed_annotations>@implements</suppressed_annotations>
</component>
</project>
+1 -7
View File
@@ -16,7 +16,7 @@
"fileMatch": [
"*/Resources/module.json"
],
"url": "./schema/routes.json"
"url": "./schema/module.json"
},
{
"fileMatch": [
@@ -58,12 +58,6 @@
],
"url": "./schema/metadata/dashlets.json"
},
{
"fileMatch": [
"*/metadata//*.json"
],
"url": "./schema/metadata/.json"
},
{
"fileMatch": [
"*/metadata/entityAcl/*.json"
+3 -1
View File
@@ -134,9 +134,11 @@ module.exports = grunt => {
src: [
'build/tmp/custom/Espo/Custom/*',
'!build/tmp/custom/Espo/Custom/.htaccess',
'!build/tmp/custom/Espo/Modules',
'build/tmp/custom/Espo/Modules/*',
'!build/tmp/custom/Espo/Modules/.htaccess',
'build/tmp/install/config.php',
'build/tmp/vendor/*/*/.git',
'build/tmp/custom/Espo/Custom/*',
'build/tmp/client/custom/*',
'!build/tmp/client/custom/modules',
'build/tmp/client/custom/modules/*',
+50 -28
View File
@@ -2,37 +2,41 @@
[![PHPStan level 8](https://img.shields.io/badge/PHPStan-level%208-brightgreen)](#espocrm)
[EspoCRM is an Open Source CRM](https://www.espocrm.com) (Customer Relationship Management)
software that allows you to see, enter and evaluate all your company relationships regardless
of the type. People, companies or opportunities all in an easy and intuitive interface.
It's a web application with a frontend designed as a single page application and a REST API
backend written in PHP.
[Download](https://www.espocrm.com/download/) the latest release from our website. Release notes
and release packages are available at [Releases](https://github.com/espocrm/espocrm/releases) on GitHub.
[EspoCRM](https://www.espocrm.com) is a free, open-source CRM platform designed to help organizations build and maintain strong customer relationships.
It provides a wide range of tools to store, organize, and manage leads, contacts, sales opportunities, marketing campaigns,
support cases, and more all business information in a simple and intuitive interface.
![Screenshot](https://user-images.githubusercontent.com/1006792/226094559-995dfd2a-a18f-4619-a21b-79a4e671990a.png)
### Architecture
EspoCRM is a web application with a frontend designed as a single-page application and a REST API
backend written in PHP.
### Demo
You can try the CRM on the online [demo](https://www.espocrm.com/demo/).
You can try the CRM on an online [demo](https://www.espocrm.com/demo/).
### Requirements
* PHP 8.1 - 8.3;
* MySQL 5.7 (and later), or MariaDB 10.2 (and later).
* PostgreSQL 15 (and later) (yet experimental, officially supported soon)
* MySQL 5.7 (and later), or MariaDB 10.2 (and later);
* PostgreSQL 15 (and later) (beta, official support soon).
For more information about server configuration see [this article](https://docs.espocrm.com/administration/server-configuration/).
For more information about server configuration, see [this article](https://docs.espocrm.com/administration/server-configuration/).
### Documentation
### Why EspoCRM?
See the [documentation](https://docs.espocrm.com) for administrators, users and developers.
* **Open-source transparency**. EspoCRMs source code is open and accessible, so anyone can inspect it and see how data is being managed within the CRM.
* **Customization freedom**. You can develop features, create custom entities, fields, relationships, buttons to make the CRM fit your specific needs.
* **Clean user interface**. EspoCRM has a uncluttered, minimalist and very fast user inteface that is easy to navigate and has a short learning curve.
* **Straightforward REST API**. It can be easily integrated with other applications using a REST API.
### Bug reporting
### Who is EspoCRM for?
Create a [GitHub issue](https://github.com/espocrm/espocrm/issues/new/choose) or post on our [forum](https://forum.espocrm.com/forum/bug-reports).
* **Startups, small & medium-sized businesses**. Its an affordable solution that is flexible and fully customizable.
* **Developers & tech enthusiasts**. You can extend functionalities, build extensions, and create custom integrations.
* **Anyone seeking a free CRM**. If you're looking for a user-friendly and secure CRM platform, it can be a good option.
### Installing stable version
@@ -43,21 +47,29 @@ See installation instructions:
* [Installation with Docker](https://docs.espocrm.com/administration/docker/installation/)
* [Installation with Traefik](https://docs.espocrm.com/administration/docker/traefik/)
### Download
[Download](https://www.espocrm.com/download/) the latest release from our website. You can also download the latest and previous release packages from GitHub [releases](https://github.com/espocrm/espocrm/releases).
### Release notes
Release notes are available at GitHub [releases](https://github.com/espocrm/espocrm/releases).
### Documentation
See the [documentation](https://docs.espocrm.com) for administrators, users and developers.
### Bug reporting
Create a [GitHub issue](https://github.com/espocrm/espocrm/issues/new/choose) or post on our [forum](https://forum.espocrm.com/forum/bug-reports).
### Development
See the [developer documentation](https://docs.espocrm.com/development/).
We highly recommend using IDE for development. The backend codebase follows SOLID principles, utilizes interfaces, static typing and generics. We recommend to start learning EspoCRM from the Dependency Injection article in the documentation.
We highly recommend using an IDE for development. The backend codebase follows SOLID principles, utilizes interfaces, static typing and generics. We recommend to start learning EspoCRM from the Dependency Injection article in the documentation.
### Contributing
Before we can merge your pull request, you need to accept our CLA [here](https://github.com/espocrm/cla). It's very simple to do.
Branches:
* *fix* upcoming maintenance release; minor fixes should be pushed to this branch;
* *master* develop branch; new features should be pushed to this branch;
* *stable* last stable release.
Metadata plays an integral role in the EspoCRM application. All possible parameters are described with a JSON Schema, meaning you will have autocompletion in the IDE. You can also find the full metadata reference in the documentation.
### Community & Support
@@ -65,7 +77,17 @@ If you have a question regarding some features, need help or customizations, wan
### License
EspoCRM is published under the GNU AGPLv3 [license](https://raw.githubusercontent.com/espocrm/espocrm/master/LICENSE.txt).
EspoCRM is an open-source project licensed under [GNU AGPLv3](https://raw.githubusercontent.com/espocrm/espocrm/master/LICENSE.txt).
### Contributing
Before we can merge your pull request, you need to accept our CLA [here](https://github.com/espocrm/cla). See the [contributing guidelines](https://github.com/espocrm/espocrm/blob/master/.github/CONTRIBUTING.md).
Branches:
* *fix* upcoming maintenance release; minor fixes should be pushed to this branch;
* *master* develop branch; new features should be pushed to this branch;
* *stable* last stable release.
### Language
-10
View File
@@ -63,11 +63,6 @@ class Binding implements BindingProcessor
'container'
);
$binder->bindService(
'Espo\\Core\\Container',
'container'
);
$binder->bindService(
'Psr\\Container\\ContainerInterface',
'container'
@@ -148,11 +143,6 @@ class Binding implements BindingProcessor
'recordServiceContainer'
);
$binder->bindService(
'Espo\\Core\\Record\\HookManager',
'recordHookManager'
);
$binder->bindService(
'Espo\\Core\\HookManager',
'hookManager'
@@ -99,10 +99,7 @@ class AccessChecker implements AccessEntityCREDChecker
else if ($this->aclManager->checkEntity($user, $parent)) {
if (
$entity->getTargetField() &&
in_array(
$entity->getTargetField(),
$this->aclManager->getScopeForbiddenFieldList($user, $parent->getEntityType())
)
!$this->aclManager->checkField($user, $parent->getEntityType(), $entity->getTargetField())
) {
return false;
}
@@ -0,0 +1,47 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Acl\ImportEml;
use Espo\Core\Acl\AccessCreateChecker;
use Espo\Core\Acl\ScopeData;
use Espo\Entities\User;
class AccessChecker implements AccessCreateChecker
{
public function check(User $user, ScopeData $data): bool
{
return $data->isTrue();
}
public function checkCreate(User $user, ScopeData $data): bool
{
return $data->isTrue();
}
}
@@ -29,6 +29,8 @@
namespace Espo\Classes\Acl\Note;
use Espo\Core\Acl\Permission;
use Espo\Core\Acl\Table;
use Espo\Entities\Note;
use Espo\Entities\User;
use Espo\ORM\Entity;
@@ -141,6 +143,10 @@ class AccessChecker implements AccessEntityCREDChecker
return in_array($user->getId(), $entity->getLinkMultipleIdList('users'));
}
if ($entity->getTargetType() === Note::TARGET_PORTALS) {
return $this->aclManager->getPermissionLevel($user, Permission::PORTAL) === Table::LEVEL_YES;
}
return false;
}
@@ -29,6 +29,7 @@
namespace Espo\Classes\Acl\Portal;
use Espo\Core\Acl\Permission;
use Espo\Entities\Portal;
use Espo\Entities\User;
use Espo\Core\Acl\AccessEntityCREDChecker;
@@ -45,18 +46,12 @@ class AccessChecker implements AccessEntityCREDChecker
{
use DefaultAccessCheckerDependency;
private DefaultAccessChecker $defaultAccessChecker;
private AclManager $aclManager;
public function __construct(DefaultAccessChecker $defaultAccessChecker, AclManager $aclManager)
{
$this->defaultAccessChecker = $defaultAccessChecker;
$this->aclManager = $aclManager;
}
public function __construct(private DefaultAccessChecker $defaultAccessChecker, private AclManager $aclManager)
{}
public function check(User $user, ScopeData $data): bool
{
$level = $this->aclManager->getPermissionLevel($user, 'portal');
$level = $this->aclManager->getPermissionLevel($user, Permission::PORTAL);
return $level === Table::LEVEL_YES;
}
@@ -29,6 +29,7 @@
namespace Espo\Classes\Acl\User;
use Espo\Core\Acl\Permission;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\Core\Acl\AccessEntityCREDSChecker;
@@ -60,8 +61,6 @@ class AccessChecker implements AccessEntityCREDSChecker
return false;
}
/** @var User $entity */
if ($entity->isSuperAdmin() && !$user->isSuperAdmin()) {
return false;
}
@@ -71,10 +70,8 @@ class AccessChecker implements AccessEntityCREDSChecker
public function checkEntityRead(User $user, Entity $entity, ScopeData $data): bool
{
/** @var User $entity */
if ($entity->isPortal()) {
if ($this->aclManager->getPermissionLevel($user, 'portal') === Table::LEVEL_YES) {
if ($this->aclManager->getPermissionLevel($user, Permission::PORTAL) === Table::LEVEL_YES) {
return true;
}
@@ -90,8 +87,6 @@ class AccessChecker implements AccessEntityCREDSChecker
public function checkEntityEdit(User $user, Entity $entity, ScopeData $data): bool
{
/** @var User $entity */
if ($entity->isSystem()) {
return false;
}
@@ -111,8 +106,6 @@ class AccessChecker implements AccessEntityCREDSChecker
public function checkEntityDelete(User $user, Entity $entity, ScopeData $data): bool
{
/** @var User $entity */
if (!$user->isAdmin()) {
return false;
}
@@ -130,8 +123,7 @@ class AccessChecker implements AccessEntityCREDSChecker
public function checkEntityStream(User $user, Entity $entity, ScopeData $data): bool
{
/** @var User $entity */
return $this->aclManager->checkUserPermission($user, $entity, 'user');
/** @noinspection PhpRedundantOptionalArgumentInspection */
return $this->aclManager->checkUserPermission($user, $entity, Permission::USER);
}
}
@@ -105,10 +105,7 @@ class AccessChecker implements AccessEntityCREDChecker
else if ($this->aclManager->checkEntity($user, $parent)) {
if (
$entity->getTargetField() &&
in_array(
$entity->getTargetField(),
$this->aclManager->getScopeForbiddenFieldList($user, $parent->getEntityType())
)
!$this->aclManager->checkField($user, $parent->getEntityType(), $entity->getTargetField())
) {
return false;
}
@@ -0,0 +1,48 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\AppParams;
use Espo\Core\Utils\Address\CountryDataProvider;
use Espo\Tools\App\AppParam;
class AddressCountryData implements AppParam
{
public function __construct(
private CountryDataProvider $provider
) {}
/**
* @return array{list: string[], preferredList: string[]}
*/
public function get(): array
{
return $this->provider->get();
}
}
@@ -0,0 +1,65 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Cleanup;
use Espo\Core\Cleanup\Cleanup;
use Espo\Core\Field\DateTime;
use Espo\Core\Utils\Config;
use Espo\Entities\AppLogRecord;
use Espo\ORM\EntityManager;
use Espo\ORM\Query\DeleteBuilder;
class AppLog implements Cleanup
{
private const PERIOD = '30 days';
public function __construct(
private EntityManager $entityManager,
private Config $config
) {}
public function process(): void
{
$query = DeleteBuilder::create()
->from(AppLogRecord::ENTITY_TYPE)
->where(['createdAt<' => $this->getBefore()->toString()])
->build();
$this->entityManager->getQueryExecutor()->execute($query);
}
private function getBefore(): DateTime
{
/** @var string $period */
$period = $this->config->get('cleanupAppLogPeriod') ?? self::PERIOD;
return DateTime::createNow()->modify('-' . $period);
}
}
+104
View File
@@ -0,0 +1,104 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Cleanup;
use Espo\Core\Cleanup\Cleanup;
use Espo\Core\Field\DateTime;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\Entities\Note;
use Espo\ORM\EntityManager;
/**
* @noinspection PhpUnused
*/
class Audit implements Cleanup
{
private const PERIOD = '3 months';
public function __construct(
private Metadata $metadata,
private EntityManager $entityManager,
private Config $config
) {}
public function process(): void
{
if (!$this->config->get('cleanupAudit')) {
return;
}
$entityTypeList = $this->getEntityTypeList();
foreach ($entityTypeList as $scope) {
$this->processEntityType($scope);
}
}
private function processEntityType(string $entityType): void
{
$query = $this->entityManager
->getQueryBuilder()
->delete()
->from(Note::ENTITY_TYPE)
->where([
'parentType' => $entityType,
'createdAt<' => $this->getBefore()->toString(),
'type' => [Note::TYPE_UPDATE, Note::TYPE_STATUS],
])
->build();
$this->entityManager->getQueryExecutor()->execute($query);
}
/**
* @return string[]
*/
private function getEntityTypeList(): array
{
/** @var string[] $scopeList */
$scopeList = array_keys($this->metadata->get(['scopes']) ?? []);
$scopeList = array_filter($scopeList, function ($item) {
return $this->metadata->get(['scopes', $item, 'entity']) &&
!$this->metadata->get(['scopes', $item, 'stream']);
});
return array_values($scopeList);
}
private function getBefore(): DateTime
{
/** @var string $period */
$period = $this->config->get('cleanupAuditPeriod') ?? self::PERIOD;
return DateTime::createNow()->modify('-' . $period);
}
}
+137
View File
@@ -0,0 +1,137 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Cleanup;
use Espo\Core\Cleanup\Cleanup;
use Espo\Core\Utils\Acl\UserAclManagerProvider;
use Espo\Entities\StarSubscription;
use Espo\Entities\User;
use Espo\ORM\EntityManager;
use Espo\ORM\Query\DeleteBuilder;
use Espo\Tools\Stars\StarService;
/**
* @noinspection PhpUnused
*/
class Stars implements Cleanup
{
public function __construct(
private EntityManager $entityManager,
private UserAclManagerProvider $userAclManagerProvider,
private StarService $service
) {}
public function process(): void
{
foreach ($this->getEntityTypeList() as $entityType) {
$this->processEntityType($entityType);
}
}
/**
* @return string[]
*/
private function getEntityTypeList(): array
{
$groups = $this->entityManager->getRDBRepositoryByClass(StarSubscription::class)
->group('entityType')
->select('entityType')
->find();
$list = [];
foreach ($groups as $group) {
$list[] = $group->get('entityType');
}
return $list;
}
private function processEntityType(string $entityType): void
{
if (
!$this->service->isEnabled($entityType) ||
!$this->entityManager->hasRepository($entityType)
) {
$deleteQuery = DeleteBuilder::create()
->from(StarSubscription::ENTITY_TYPE)
->where(['entityType' => $entityType])
->build();
$this->entityManager->getQueryExecutor()->execute($deleteQuery);
return;
}
$stars = $this->entityManager
->getRDBRepositoryByClass(StarSubscription::class)
->where(['entityType' => $entityType])
->sth()
->find();
foreach ($stars as $star) {
$entityId = $star->get('entityId');
$userId = $star->get('userId');
if ($userId === null || $entityId === null) {
continue;
}
$entity = $this->entityManager->getEntityById($entityType, $entityId);
$user = $this->entityManager->getRDBRepositoryByClass(User::class)->getById($userId);
if (!$entity || !$user) {
$this->unstar($userId, $entityType, $entityId);
continue;
}
$aclManager = $this->userAclManagerProvider->get($user);
if (!$aclManager->checkEntityRead($user, $entity)) {
$this->unstar($userId, $entityType, $entityId);
}
}
}
private function unstar(string $userId, string $entityType, string $entityId): void
{
$deleteQuery = DeleteBuilder::create()
->from(StarSubscription::ENTITY_TYPE)
->where([
'userId' => $userId,
'entityType' => $entityType,
'entityId' => $entityId,
])
->build();
$this->entityManager->getQueryExecutor()->execute($deleteQuery);
}
}
@@ -33,7 +33,7 @@ use Espo\Core\Cleanup\Cleanup;
use Espo\Core\Field\DateTime;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\Entities\Subscription;
use Espo\Entities\StreamSubscription;
use Espo\ORM\EntityManager;
use Espo\ORM\Query\Part\Condition as Cond;
@@ -41,19 +41,11 @@ class Subscribers implements Cleanup
{
private const PERIOD = '2 months';
private Metadata $metadata;
private EntityManager $entityManager;
private Config $config;
public function __construct(
Metadata $metadata,
EntityManager $entityManager,
Config $config
) {
$this->metadata = $metadata;
$this->entityManager = $entityManager;
$this->config = $config;
}
private Metadata $metadata,
private EntityManager $entityManager,
private Config $config
) {}
public function process(): void
{
@@ -105,7 +97,7 @@ class Subscribers implements Cleanup
$query = $this->entityManager
->getQueryBuilder()
->delete()
->from(Subscription::ENTITY_TYPE, 'subscription')
->from(StreamSubscription::ENTITY_TYPE, 'subscription')
->join(
$entityType,
'entity',
@@ -0,0 +1,66 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\ConsoleCommands;
use Espo\Core\Console\Command;
use Espo\Core\Console\Command\Params;
use Espo\Core\Console\IO;
use Espo\Core\Utils\File\Manager as FileManager;
use Espo\Core\Utils\System;
use Espo\Core\Utils\Util;
/**
* @noinspection PhpUnused
*/
class CheckFilePermissions implements Command
{
public function __construct(
private FileManager $fileManager,
private System $system
) {}
public function run(Params $params, IO $io): void
{
$io->writeLine("\nNote: Run this command under the web server user.\n");
$io->writeLine('Writable:');
$io->writeLine('');
foreach ($this->fileManager->getPermissionUtils()->getWritableList() as $path) {
$fullPath = Util::concatPath($this->system->getRootDir(), $path);
$isWritable = $this->fileManager->isWritable($fullPath);
$msg = " " . ($isWritable ? "OK" : "FAIL") . " : $path";
$io->writeLine($msg);
}
}
}
@@ -0,0 +1,66 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldProcessing\Email;
use Espo\Core\FieldProcessing\Loader;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\Entities\Email;
use Espo\Entities\EmailFolder;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
/**
* @implements Loader<Email>
*/
class FolderDataLoader implements Loader
{
public function __construct(private EntityManager $entityManager) {}
public function process(Entity $entity, Params $params): void
{
$folderId = $entity->get(Email::USERS_COLUMN_FOLDER_ID);
if (!$folderId) {
return;
}
$folder = $this->entityManager
->getRDBRepositoryByClass(EmailFolder::class)
->select(['id', 'name'])
->where(['id' => $folderId])
->findOne();
if (!$folder) {
return;
}
$entity->set('folderName', $folder->getName());
}
}
@@ -41,14 +41,10 @@ use Espo\Entities\User;
*/
class UserColumnsLoader implements Loader
{
private EntityManager $entityManager;
private User $user;
public function __construct(EntityManager $entityManager, User $user)
{
$this->entityManager = $entityManager;
$this->user = $user;
}
public function __construct(
private EntityManager $entityManager,
private User $user
) {}
public function process(Entity $entity, Params $params): void
{
@@ -58,6 +54,7 @@ class UserColumnsLoader implements Loader
Email::USERS_COLUMN_IS_READ,
Email::USERS_COLUMN_IS_IMPORTANT,
Email::USERS_COLUMN_IN_TRASH,
Email::USERS_COLUMN_IN_ARCHIVE,
])
->where([
'deleted' => false,
@@ -70,6 +67,7 @@ class UserColumnsLoader implements Loader
$entity->set(Email::USERS_COLUMN_IS_READ, null);
$entity->clear(Email::USERS_COLUMN_IS_IMPORTANT);
$entity->clear(Email::USERS_COLUMN_IN_TRASH);
$entity->clear(Email::USERS_COLUMN_IN_ARCHIVE);
return;
}
@@ -78,6 +76,8 @@ class UserColumnsLoader implements Loader
Email::USERS_COLUMN_IS_READ => $emailUser->get(Email::USERS_COLUMN_IS_READ),
Email::USERS_COLUMN_IS_IMPORTANT => $emailUser->get(Email::USERS_COLUMN_IS_IMPORTANT),
Email::USERS_COLUMN_IN_TRASH => $emailUser->get(Email::USERS_COLUMN_IN_TRASH),
Email::USERS_COLUMN_IN_ARCHIVE => $emailUser->get(Email::USERS_COLUMN_IN_ARCHIVE),
'isUsersSent' => $entity->getSentBy()?->getId() === $this->user->getId(),
]);
}
}
@@ -0,0 +1,27 @@
<?php
/**LICENSE**/
namespace Espo\Classes\FieldProcessing\InboundEmail;
use Espo\Core\FieldProcessing\Loader;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\Core\Utils\Config;
use Espo\Entities\InboundEmail;
use Espo\ORM\Entity;
/**
* @implements Loader<InboundEmail>
*/
class IsSystemLoader implements Loader
{
public function __construct(
private Config $config,
) {}
public function process(Entity $entity, Params $params): void
{
$isSystem = $entity->getEmailAddress() === $this->config->get('outboundEmailFromAddress');
$entity->set('isSystem', $isSystem);
}
}
@@ -27,46 +27,58 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\FieldProcessing\LeadCapture;
use Espo\Entities\LeadCapture as LeadCaptureEntity;
use Espo\Core\FieldProcessing\Loader;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\FieldUtil;
use Espo\Core\Utils\Util;
use Espo\Entities\LeadCapture;
use Espo\Modules\Crm\Entities\Lead;
use Espo\ORM\Entity;
use Espo\Tools\LeadCapture\Service as LeadCaptureService;
use Espo\Core\Utils\Util;
use Espo\ORM\EntityManager;
/**
* @extends Record<LeadCaptureEntity>
* @implements Loader<LeadCapture>
*/
class LeadCapture extends Record
class ExampleLoader implements Loader
{
/** @var string[] */
protected $readOnlyAttributeList = ['apiKey'];
public function __construct(
private FieldUtil $fieldUtil,
private Config $config,
private EntityManager $entityManager
) {}
/**
* @param LeadCaptureEntity $entity
*/
public function prepareEntityForOutput(Entity $entity)
public function process(Entity $entity, Params $params): void
{
parent::prepareEntityForOutput($entity);
$entity->set('exampleRequestMethod', 'POST');
$entity->set('exampleRequestHeaders', [
'Content-Type: application/json',
]);
$this->processRequestUrl($entity);
$this->processRequestPayload($entity);
}
private function processRequestUrl(LeadCapture $entity): void
{
$apiKey = $entity->getApiKey();
$siteUrl = $this->config->get('siteUrl');
if ($apiKey) {
$requestUrl = $this->config->getSiteUrl() . '/api/v1/LeadCapture/' . $apiKey;
$entity->set('exampleRequestUrl', $requestUrl);
if (!$apiKey) {
return;
}
$fieldUtil = $this->fieldUtil;
$requestUrl = "$siteUrl/api/v1/LeadCapture/$apiKey";
$requestPayload = "```{\n";
$entity->set('exampleRequestUrl', $requestUrl);
}
private function processRequestPayload(LeadCapture $entity): void
{
$requestPayload = "```\n{\n";
$attributeList = [];
@@ -80,7 +92,7 @@ class LeadCapture extends Record
];
foreach ($entity->getFieldList() as $field) {
foreach ($fieldUtil->getActualAttributeList(Lead::ENTITY_TYPE, $field) as $attribute) {
foreach ($this->fieldUtil->getActualAttributeList(Lead::ENTITY_TYPE, $field) as $attribute) {
if (!in_array($attribute, $attributeIgnoreList)) {
$attributeList[] = $attribute;
}
@@ -105,20 +117,8 @@ class LeadCapture extends Record
$requestPayload .= "\n";
}
$requestPayload .= '}```';
$requestPayload .= "}\n```";
$entity->set('exampleRequestPayload', $requestPayload);
}
protected function beforeCreateEntity(Entity $entity, $data)
{
$apiKey = $this->createLeadCaptureService()->generateApiKey();
$entity->set('apiKey', $apiKey);
}
protected function createLeadCaptureService(): LeadCaptureService
{
return $this->injectableFactory->create(LeadCaptureService::class);
}
}
@@ -29,19 +29,18 @@
namespace Espo\Classes\FieldProcessing\Note;
use Espo\ORM\Entity;
use Espo\Core\FieldProcessing\Loader;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\Entities\Note;
use Espo\ORM\Entity;
/**
* @implements Loader<Note>
*/
class AttachmentsLoader implements Loader
class AdditionalFieldsLoader implements Loader
{
public function process(Entity $entity, Params $params): void
{
/** @var Note $entity */
$entity->loadAttachments();
$entity->loadAdditionalFields();
}
}
@@ -34,7 +34,6 @@ use Espo\Entities\AuthToken;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\Core\Acl;
use Espo\Core\Acl\Table;
use Espo\Core\FieldProcessing\Loader;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\Core\ORM\EntityManager;
@@ -44,6 +43,7 @@ use Exception;
/**
* @implements Loader<User>
* @noinspection PhpUnused
*/
class LastAccessLoader implements Loader
{
@@ -58,10 +58,7 @@ class LastAccessLoader implements Loader
public function process(Entity $entity, Params $params): void
{
$forbiddenFieldList = $this->acl
->getScopeForbiddenFieldList($entity->getEntityType(), Table::ACTION_READ);
if (in_array('lastAccess', $forbiddenFieldList)) {
if (!$this->acl->checkField($entity->getEntityType(), 'lastAccess')) {
return;
}
@@ -0,0 +1,54 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class ArrayFromNull implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if ($value !== null) {
return;
}
$data->set($field, []);
}
}
@@ -0,0 +1,62 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class ArrayStringTrim implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if (!is_array($value)) {
return;
}
foreach ($value as $i => $item) {
if (!is_string($item)) {
continue;
}
$value[$i] = trim($item);
}
$data->set($field, $value);
}
}
@@ -0,0 +1,70 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use DateTimeImmutable;
use DateTimeInterface;
use Espo\Core\Field\Date as DateValue;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
use Espo\Core\Utils\DateTime as DateTimeUtil;
use Exception;
/**
* @noinspection PhpUnused
*/
class Date implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
$value = $data->get($field);
if ($value === null) {
return;
}
try {
DateValue::fromString($value);
return;
}
catch (Exception) {}
$dateTime = DateTimeImmutable::createFromFormat(DateTimeInterface::ATOM, $value);
if ($dateTime === false) {
return;
}
$value = $dateTime->format(DateTimeUtil::SYSTEM_DATE_FORMAT);
$data->set($field, $value);
}
}
@@ -0,0 +1,73 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use DateTimeImmutable;
use DateTimeInterface;
use DateTimeZone;
use Espo\Core\Field\DateTime as DateTimeValue;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
use Espo\Core\Utils\DateTime as DateTimeUtil;
use Exception;
/**
* @noinspection PhpUnused
*/
class Datetime implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
$value = $data->get($field);
if ($value === null) {
return;
}
try {
DateTimeValue::fromString($value);
return;
}
catch (Exception) {}
$dateTime = DateTimeImmutable::createFromFormat(DateTimeInterface::ATOM, $value);
if ($dateTime === false) {
return;
}
$value = $dateTime
->setTimezone(new DateTimeZone('UTC'))
->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT);
$data->set($field, $value);
}
}
@@ -0,0 +1,72 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use DateTimeImmutable;
use DateTimeInterface;
use Espo\Core\Field\Date;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
use Espo\Core\Utils\DateTime as DateTimeUtil;
use Exception;
/**
* @noinspection PhpUnused
*/
class DatetimeOptionalDate implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
$attribute = $field . 'Date';
$value = $data->get($attribute);
if ($value === null) {
return;
}
try {
Date::fromString($value);
return;
}
catch (Exception) {}
$dateTime = DateTimeImmutable::createFromFormat(DateTimeInterface::ATOM, $value);
if ($dateTime === false) {
return;
}
$value = $dateTime->format(DateTimeUtil::SYSTEM_DATE_FORMAT);
$data->set($attribute, $value);
}
}
@@ -0,0 +1,58 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class EmptyStringToNull implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if (!is_string($value)) {
return;
}
if ($value === '') {
$value = null;
}
$data->set($field, $value);
}
}
@@ -0,0 +1,56 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class StringLowerCase implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if (!is_string($value)) {
return;
}
$value = mb_strtolower($value);
$data->set($field, $value);
}
}
@@ -0,0 +1,60 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class StringTrim implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if (!is_string($value)) {
return;
}
$value = trim($value);
if ($value === '') {
$value = null;
}
$data->set($field, $value);
}
}
@@ -0,0 +1,56 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldSanitizers;
use Espo\Core\FieldSanitize\Sanitizer;
use Espo\Core\FieldSanitize\Sanitizer\Data;
/**
* @noinspection PhpUnused
*/
class StringUpperCase implements Sanitizer
{
public function sanitize(Data $data, string $field): void
{
if (!$data->has($field)) {
return;
}
$value = $data->get($field);
if (!is_string($value)) {
return;
}
$value = mb_strtoupper($value);
$data->set($field, $value);
}
}
@@ -0,0 +1,56 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldValidators\InboundEmail\FetchSince;
use Espo\Core\FieldValidation\Validator;
use Espo\Core\FieldValidation\Validator\Data;
use Espo\Core\FieldValidation\Validator\Failure;
use Espo\Entities\EmailAccount;
use Espo\Entities\InboundEmail;
use Espo\ORM\Entity;
/**
* @implements Validator<InboundEmail|EmailAccount>
*/
class Required implements Validator
{
public function validate(Entity $entity, string $field, Data $data): ?Failure
{
if (!$entity->isAvailableForFetching()) {
return null;
}
if (!$entity->get('fetchSince')) {
return Failure::create();
}
return null;
}
}
@@ -29,16 +29,54 @@
namespace Espo\Classes\FieldValidators;
use Doctrine\DBAL\Types\Types;
use Espo\ORM\Defs;
use Espo\ORM\Entity;
use stdClass;
class IntType
{
public function __construct(
private Defs $defs,
) {}
public function checkRequired(Entity $entity, string $field): bool
{
return $this->isNotEmpty($entity, $field);
}
/** @noinspection PhpUnused */
public function checkRangeInternal(Entity $entity, string $field): bool
{
$value = $entity->get($field);
if ($value === null) {
return true;
}
$dbType = $this->defs
->getEntity($entity->getEntityType())
->tryGetAttribute($field)
?->getParam('dbType') ?? Types::INTEGER;
$ranges = [
Types::INTEGER => [-2147483648, 2147483647],
Types::SMALLINT => [-32768, 32767],
];
$range = $ranges[$dbType] ?? null;
if (!$range) {
return true;
}
if ($value < $range[0] || $value > $range[1]) {
return false;
}
return true;
}
/**
* @param mixed $validationValue
* @noinspection PhpUnused
@@ -36,20 +36,17 @@ use Espo\Core\ORM\Entity as CoreEntity;
use stdClass;
/**
* @noinspection PhpUnused
*/
class LinkMultipleType
{
private Metadata $metadata;
private Defs $defs;
private const COLUMN_TYPE_ENUM = 'enum';
private const COLUMN_TYPE_VARCHAR = 'varchar';
private const COLUMN_TYPE_BOOL = 'bool';
public function __construct(Metadata $metadata, Defs $defs)
{
$this->metadata = $metadata;
$this->defs = $defs;
}
public function __construct(private Metadata $metadata, private Defs $defs)
{}
public function checkRequired(Entity $entity, string $field): bool
{
@@ -63,6 +60,7 @@ class LinkMultipleType
return count($idList) > 0;
}
/** @noinspection PhpUnused */
public function checkPattern(Entity $entity, string $field): bool
{
/** @var ?mixed[] $idList */
@@ -93,6 +91,27 @@ class LinkMultipleType
return true;
}
/** @noinspection PhpUnused */
public function checkMaxCount(Entity $entity, string $field, ?int $maxCount): bool
{
if ($maxCount === null) {
return true;
}
$list = $entity->get($field . 'Ids');
if (!is_array($list)) {
return true;
}
if (count($list) > $maxCount) {
return false;
}
return true;
}
/** @noinspection PhpUnused */
public function checkColumnsValid(Entity $entity, string $field): bool
{
if (!$entity instanceof CoreEntity) {
@@ -31,6 +31,7 @@ namespace Espo\Classes\FieldValidators;
use Brick\PhoneNumber\PhoneNumber;
use Brick\PhoneNumber\PhoneNumberParseException;
use Espo\Core\PhoneNumber\Util;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\ORM\Defs;
@@ -203,6 +204,22 @@ class PhoneType
return true;
}
$ext = null;
if ($this->config->get('phoneNumberExtensions')) {
[$number, $ext] = Util::splitExtension($number);
}
if ($ext) {
if (!preg_match('/[0-9]+/', $ext)) {
return false;
}
if (strlen($ext) > 6) {
return false;
}
}
try {
$numberObj = PhoneNumber::parse($number);
}
@@ -27,38 +27,36 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
use Espo\ORM\Entity;
use Espo\Core\Exceptions\BadRequest;
namespace Espo\Classes\FieldValidators\ScheduledJob\Scheduling;
use Cron\CronExpression;
use Espo\Core\FieldValidation\Validator;
use Espo\Core\FieldValidation\Validator\Data;
use Espo\Core\FieldValidation\Validator\Failure;
use Espo\Entities\ScheduledJob;
use Espo\ORM\Entity;
use Exception;
/**
* @extends Record<\Espo\Entities\ScheduledJob>
* @implements Validator<ScheduledJob>
*/
class ScheduledJob extends Record
class Valid implements Validator
{
/** Should not be removed. */
protected bool $findLinkedLogCountQueryDisabled = true;
public function processValidation(Entity $entity, $data)
public function validate(Entity $entity, string $field, Data $data): ?Failure
{
parent::processValidation($entity, $data);
$scheduling = $entity->getScheduling();
$scheduling = $entity->get('scheduling');
if ($scheduling === null) {
return null;
}
try {
$cronExpression = CronExpression::factory($scheduling);
new CronExpression($scheduling);
}
catch (Exception) {
return Failure::create();
}
/** @phpstan-ignore-next-line*/
$cronExpression->getNextRunDate()->format('Y-m-d H:i:s');
}
catch (Exception $e) {
throw new BadRequest("Not valid scheduling expression.");
}
return null;
}
}
@@ -0,0 +1,90 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldValidators\Settings\AuthIpAddressWhitelist;
use Espo\Core\FieldValidation\Validator;
use Espo\Core\FieldValidation\Validator\Data;
use Espo\Core\FieldValidation\Validator\Failure;
use Espo\ORM\Entity;
/**
* @implements Validator<Entity>
*/
class Valid implements Validator
{
public function validate(Entity $entity, string $field, Data $data): ?Failure
{
$list = $entity->get($field);
if (!is_array($list)) {
return null;
}
foreach ($list as $item) {
if (!is_string($item)) {
continue;
}
if (!$this->isValid($item)) {
return Failure::create();
}
}
return null;
}
private function isValid(string $item): bool
{
$address = $item;
if (count(explode('/', $item)) > 1) {
[$address, $mask] = explode('/', $item, 2);
if (!is_numeric($mask)) {
return false;
}
$mask = (int) $mask;
if ($mask < 0 || $mask > 128) {
return false;
}
}
if (
filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false &&
filter_var($address, FILTER_VALIDATE_IP) === false
) {
return false;
}
return true;
}
}
@@ -0,0 +1,60 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldValidators\Settings\ThousandSeparator;
use Espo\Core\FieldValidation\Validator;
use Espo\Core\FieldValidation\Validator\Data;
use Espo\Core\FieldValidation\Validator\Failure;
use Espo\ORM\Entity;
/**
* @implements Validator<Entity>
*/
class Valid implements Validator
{
public function validate(Entity $entity, string $field, Data $data): ?Failure
{
$value = $entity->get($field);
if (!$value) {
return null;
}
if (!is_string($value)) {
return Failure::create();
}
if (preg_match('/^[0-9]$/', $value)) {
return Failure::create();
}
return null;
}
}
@@ -0,0 +1,55 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\FieldValidators\User\DefaultTeam;
use Espo\Core\FieldValidation\Validator;
use Espo\Core\FieldValidation\Validator\Data;
use Espo\Core\FieldValidation\Validator\Failure;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @implements Validator<User>
*/
class IsUserTeam implements Validator
{
public function validate(Entity $entity, string $field, Data $data): ?Failure
{
if (!$entity->getDefaultTeam()) {
return null;
}
if (in_array($entity->getDefaultTeam()->getId(), $entity->getTeamIdList())) {
return null;
}
return Failure::create();
}
}
@@ -30,61 +30,99 @@
namespace Espo\Classes\Jobs;
use Espo\Entities\AuthToken;
use Espo\Entities\Portal;
use Espo\Core\Job\JobDataLess;
use Espo\Core\ORM\EntityManager;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\DateTime as DateTimeUtil;
use DateTime;
/**
* @noinspection PhpUnused
*/
class AuthTokenControl implements JobDataLess
{
private Config $config;
private EntityManager $entityManager;
private const LIMIT = 500;
public function __construct(Config $config, EntityManager $entityManager)
{
$this->config = $config;
$this->entityManager = $entityManager;
}
public function __construct(
private Config $config,
private EntityManager $entityManager
) {}
public function run(): void
{
$authTokenLifetime = $this->config->get('authTokenLifetime');
$authTokenMaxIdleTime = $this->config->get('authTokenMaxIdleTime');
$lifetime = (int) ($this->config->get('authTokenLifetime', 0) * 60);
$maxIdleTime = (int) ($this->config->get('authTokenMaxIdleTime', 0) * 60);
if (!$authTokenLifetime && !$authTokenMaxIdleTime) {
$portalIds = [];
/** @var iterable<Portal> $portals */
$portals = $this->entityManager
->getRDBRepositoryByClass(Portal::class)
->find();
foreach ($portals as $portal) {
$portalIds[] = $portal->getId();
}
$this->process(null, $lifetime, $maxIdleTime, $portalIds);
foreach ($portals as $portal) {
$itemLifetime = $portal->get('authTokenLifetime') !== null ?
(int) ($portal->get('authTokenLifetime') * 60) :
$lifetime;
$itemMaxIdleTime = $portal->get('authTokenMaxIdleTime') !== null ?
(int) ($portal->get('authTokenMaxIdleTime') * 60) :
$maxIdleTime;
$this->process($portal->getId(), $itemLifetime, $itemMaxIdleTime);
}
}
/**
* @param string[] $ignorePortalIds
*/
private function process(?string $portalId, int $lifetime, int $maxIdleTime, array $ignorePortalIds = []): void
{
if (!$lifetime && !$maxIdleTime) {
return;
}
$whereClause = [
'isActive' => true,
];
$whereClause = ['isActive' => true];
if ($authTokenLifetime) {
$dt = new DateTime();
$dt->modify('-' . $authTokenLifetime . ' hours');
$authTokenLifetimeThreshold = $dt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT);
$whereClause['createdAt<'] = $authTokenLifetimeThreshold;
if ($portalId) {
$whereClause['portalId'] = $portalId;
}
if ($authTokenMaxIdleTime) {
if (!$portalId && $ignorePortalIds !== []) {
$whereClause[] = [
'OR' => [
['portalId' => null],
['portalId!=' => $ignorePortalIds],
]
];
}
if ($lifetime) {
$dt = new DateTime();
$dt->modify("-$lifetime minutes");
$dt->modify('-' . $authTokenMaxIdleTime . ' hours');
$whereClause['createdAt<'] = $dt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT);
}
$authTokenMaxIdleTimeThreshold = $dt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT);
if ($maxIdleTime) {
$dt = new DateTime();
$dt->modify("-$maxIdleTime minutes");
$whereClause['lastAccess<'] = $authTokenMaxIdleTimeThreshold;
$whereClause['lastAccess<'] = $dt->format(DateTimeUtil::SYSTEM_DATE_TIME_FORMAT);
}
$tokenList = $this->entityManager
->getRDBRepository(AuthToken::ENTITY_TYPE)
->sth()
->where($whereClause)
->limit(0, 500)
->limit(0, self::LIMIT)
->find();
foreach ($tokenList as $token) {
@@ -29,39 +29,31 @@
namespace Espo\Classes\Jobs;
use Espo\Core\Exceptions\Error;
use Espo\Core\Mail\Account\PersonalAccount\Service;
use Espo\Core\Job\Job;
use Espo\Core\Job\Job\Data;
use RuntimeException;
use Throwable;
class CheckEmailAccounts implements Job
{
private $service;
public function __construct(Service $service)
{
$this->service = $service;
}
public function __construct(private Service $service)
{}
public function run(Data $data): void
{
$targetId = $data->getTargetId();
if (!$targetId) {
throw new Error("No target.");
throw new RuntimeException("No target.");
}
try {
$this->service->fetch($targetId);
}
catch (Throwable $e) {
throw new Error(
'Job CheckEmailAccounts ' . $targetId . ': [' . $e->getCode() . '] ' . $e->getMessage() . ' ' .
$e->getFile() . ':' . $e->getLine()
);
throw new RuntimeException("CheckInboundEmails job failed, $targetId; {$e->getMessage()}", 0, $e);
}
}
}
@@ -29,37 +29,31 @@
namespace Espo\Classes\Jobs;
use Espo\Core\Exceptions\Error;
use Espo\Core\Mail\Account\GroupAccount\Service;
use Espo\Core\Job\Job;
use Espo\Core\Job\Job\Data;
use RuntimeException;
use Throwable;
class CheckInboundEmails implements Job
{
private $service;
public function __construct(Service $service)
{
$this->service = $service;
}
public function __construct(private Service $service)
{}
public function run(Data $data): void
{
$targetId = $data->getTargetId();
if (!$targetId) {
throw new Error("No target.");
throw new RuntimeException("No target.");
}
try {
$this->service->fetch($targetId);
}
catch (Throwable $e) {
throw new Error(
'Job CheckInboundEmails ' . $targetId . ': [' . $e->getCode() . '] ' .$e->getMessage()
);
throw new RuntimeException("CheckInboundEmails job failed, $targetId; {$e->getMessage()}", 0, $e);
}
}
}
@@ -30,6 +30,7 @@
namespace Espo\Classes\MassAction\Email;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\MassAction\Data;
use Espo\Core\MassAction\MassAction;
@@ -44,11 +45,10 @@ use Espo\ORM\EntityManager;
use Espo\Tools\Email\Folder;
use Espo\Tools\Email\InboxService as EmailService;
use Exception;
use RuntimeException;
class MoveToFolder implements MassAction
{
private const FOLDER_INBOX = Folder::INBOX;
public function __construct(
private QueryBuilder $queryBuilder,
private EntityManager $entityManager,
@@ -68,7 +68,11 @@ class MoveToFolder implements MassAction
throw new BadRequest("No folder ID.");
}
if ($folderId !== self::FOLDER_INBOX && !str_starts_with($folderId, 'group:')) {
if (
$folderId !== Folder::INBOX &&
$folderId !== Folder::ARCHIVE &&
!str_starts_with($folderId, 'group:')
) {
$folder = $this->entityManager
->getRDBRepositoryByClass(EmailFolder::class)
->where([
@@ -93,7 +97,12 @@ class MoveToFolder implements MassAction
}
}
$query = $this->queryBuilder->build($params);
try {
$query = $this->queryBuilder->build($params);
}
catch (BadRequest|Forbidden $e) {
throw new RuntimeException($e->getMessage());
}
$collection = $this->entityManager
->getRDBRepositoryByClass(Email::class)
@@ -31,6 +31,7 @@ namespace Espo\Classes\MassAction\User;
use Espo\Core\Acl;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\MassAction\Actions\MassDelete as MassDeleteOriginal;
use Espo\Core\MassAction\Data;
@@ -59,18 +60,19 @@ class MassDelete implements MassAction
/**
* @throws Forbidden
* @throws BadRequest
* @throws Error
*/
public function process(Params $params, Data $data): Result
{
$entityType = $params->getEntityType();
if (!$this->acl->check($entityType, Acl\Table::ACTION_DELETE)) {
throw new Forbidden("No delete access for '{$entityType}'.");
throw new Forbidden("No delete access for '$entityType'.");
}
if (
!$params->hasIds() &&
$this->acl->getPermissionLevel('massUpdatePermission') !== Acl\Table::LEVEL_YES
$this->acl->getPermissionLevel(Acl\Permission::MASS_UPDATE) !== Acl\Table::LEVEL_YES
) {
throw new Forbidden("No mass-update permission.");
}
@@ -51,7 +51,7 @@ use Espo\Tools\MassUpdate\Data as MassUpdateData;
class MassUpdate implements MassAction
{
private const PERMISSION = 'massUpdatePermission';
private const PERMISSION = Acl\Permission::MASS_UPDATE;
/** @var string[] */
private array $notAllowedAttributeList = [
@@ -0,0 +1,156 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Attachment;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
use Espo\Entities\Attachment;
use Espo\ORM\EntityManager;
use Espo\Tools\Attachment\AccessChecker;
use Espo\Tools\Attachment\DetailsObtainer;
use Espo\Tools\Attachment\FieldData;
/**
* @noinspection PhpUnused
*/
class CreateInputFilter implements Filter
{
public function __construct(
private EntityManager $entityManager,
private AccessChecker $accessChecker,
private DetailsObtainer $detailsObtainer
) {}
/**
* @throws BadRequest
* @throws Error
* @throws Forbidden
*/
public function filter(Data $data): void
{
$data->clear('parentId');
$data->clear('relatedId');
$contents = $this->handleContents($data);
$relatedEntityType = $this->getRelatedEntityType($data);
$field = $data->get('field');
$role = $data->get('role') ?? Attachment::ROLE_ATTACHMENT;
if (!$relatedEntityType || !$field) {
throw new BadRequest("No `field` and `parentType`.");
}
$fieldData = new FieldData($field, $data->get('parentType'), $data->get('relatedType'));
$this->accessChecker->check($fieldData, $role);
$this->checkMaxSize($contents, $data, $field, $role);
}
private function getRelatedEntityType(Data $data): ?string
{
if ($data->get('parentType') !== null) {
$data->clear('relatedType');
return $data->get('parentType');
}
if ($data->get('relatedType') !== null) {
return $data->get('relatedType');
}
return null;
}
/**
* @throws BadRequest
*/
private function handleContents(Data $data): string
{
$isBeingUploaded = $data->get('isBeingUploaded') ?? false;
$contents = '';
if (!$isBeingUploaded) {
if (!$data->has('file')) {
throw new BadRequest("No file contents.");
}
$file = $data->get('file');
if (!is_string($file)) {
throw new BadRequest("Non-string file contents.");
}
$arr = explode(',', $file);
if (count($arr) < 2) {
throw new BadRequest("Bad file contents.");
}
$contents = base64_decode($arr[1]);
if ($contents === false) {
throw new BadRequest("Could not decode file contents.");
}
}
$data->set('contents', $contents);
return $contents;
}
/**
* @throws BadRequest
*/
private function checkMaxSize(string $contents, Data $data, mixed $field, mixed $role): void
{
$size = mb_strlen($contents, '8bit');
$dummy = $this->entityManager->getRepositoryByClass(Attachment::class)->getNew();
$dummy->set([
'parentType' => $data->get('parentType'),
'relatedType' => $data->get('relatedType'),
'field' => $field,
'role' => $role,
]);
$maxSize = $this->detailsObtainer->getUploadMaxSize($dummy);
if ($maxSize && $size > $maxSize * 1024 * 1024) {
throw new BadRequest("File size should not exceed $maxSize Mb.");
}
}
}
@@ -0,0 +1,49 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Attachment;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
/**
* @noinspection PhpUnused
*/
class UpdateInputFilter implements Filter
{
public function filter(Data $data): void
{
$data->clear('parentId');
$data->clear('parentType');
$data->clear('relatedId');
$data->clear('relatedType');
$data->clear('isBeingUploaded');
$data->clear('storage');
}
}
@@ -27,33 +27,26 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\Record\AuthToken;
use stdClass;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
/**
* @extends Record<\Espo\Entities\AuthToken>
* @noinspection PhpUnused
*/
class AuthToken extends Record
class UpdateInputFilter implements Filter
{
protected $actionHistoryDisabled = true;
public function filterUpdateInput(stdClass $data): void
public function filter(Data $data): void
{
parent::filterUpdateInput($data);
$dataArray = get_object_vars($data);
foreach (array_keys($dataArray) as $attribute) {
foreach ($data->getAttributeList() as $attribute) {
if ($attribute !== 'isActive') {
unset($data->$attribute);
continue;
$data->clear($attribute);
}
}
if ($data->isActive ?? false) {
unset($data->isActive);
if ($data->get('isActive')) {
$data->clear('isActive');
}
}
}
@@ -0,0 +1,71 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\InboundEmail;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
use Espo\Core\Utils\Crypt;
/**
* @noinspection PhpUnused
*/
class PasswordsInputFilter implements Filter
{
public function __construct(
private Crypt $crypt
) {}
/**
* @throws BadRequest
*/
public function filter(Data $data): void
{
$password = $data->get('password');
if ($password !== null) {
if (!is_string($password)) {
throw new BadRequest();
}
$data->set('password', $this->crypt->encrypt($password));
}
$smtpPassword = $data->get('smtpPassword');
if ($smtpPassword !== null) {
if (!is_string($smtpPassword)) {
throw new BadRequest();
}
$data->set('smtpPassword', $this->crypt->encrypt($smtpPassword));
}
}
}
@@ -0,0 +1,50 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Note;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
/**
* @noinspection PhpUnused
*/
class UpdateInputFilter implements Filter
{
public function filter(Data $data): void
{
$data->clear('parentId');
$data->clear('parentType');
$data->clear('targetType');
$data->clear('usersIds');
$data->clear('teamsIds');
$data->clear('portalsIds');
$data->clear('isGlobal');
}
}
@@ -0,0 +1,59 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Portal;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
use Espo\Core\Utils\Config;
use Espo\Entities\User;
/**
* @noinspection PhpUnused
*/
class InputFilter implements Filter
{
public function __construct(
private User $user,
private Config $config
) {}
public function filter(Data $data): void
{
if (!$this->config->get('restrictedMode')) {
return;
}
if ($this->user->isSuperAdmin()) {
return;
}
$data->clear('customUrl');
}
}
@@ -0,0 +1,74 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\User;
use Espo\Core\Authentication\Logins\Hmac;
use Espo\Core\Record\Output\Filter;
use Espo\Core\Utils\ApiKey;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @implements Filter<User>
*/
class OutputFilter implements Filter
{
public function __construct(
private User $user,
private ApiKey $apiKey
) {}
public function filter(Entity $entity): void
{
$entity->clear('sendAccessInfo');
$this->filterApiUser($entity);
}
private function filterApiUser(User $entity): void
{
if (!$entity->isApi()) {
return;
}
if ($this->user->isAdmin()) {
if ($entity->getAuthMethod() === Hmac::NAME) {
$secretKey = $this->apiKey->getSecretKeyForUserId($entity->getId());
$entity->set('secretKey', $secretKey);
}
return;
}
$entity->clear('apiKey');
$entity->clear('secretKey');
}
}
@@ -0,0 +1,56 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Webhook;
use Espo\Core\Record\Defaults\DefaultPopulator;
use Espo\Core\Record\Defaults\Populator;
use Espo\Entities\User;
use Espo\Entities\Webhook;
use Espo\ORM\Entity;
/**
* @implements Populator<Webhook>
*/
class DefaultsPopulator implements Populator
{
public function __construct(
private DefaultPopulator $defaultsDefaultsPopulator,
private User $user
) {}
public function populate(Entity $entity): void
{
$this->defaultsDefaultsPopulator->populate($entity);
if ($this->user->isApi()) {
$entity->set('userId', $this->user->getId());
}
}
}
@@ -0,0 +1,51 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Record\Webhook;
use Espo\Core\Record\Input\Data;
use Espo\Core\Record\Input\Filter;
use Espo\Entities\User;
/**
* @noinspection PhpUnused
*/
class UpdateInputFilter implements Filter
{
public function __construct(
private User $user
) {}
public function filter(Data $data): void
{
if (!$this->user->isAdmin()) {
$data->clear('event');
}
}
}
@@ -0,0 +1,70 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\AddressCountry;
use Espo\Core\Exceptions\ConflictSilent;
use Espo\Core\Exceptions\Error\Body;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\AddressCountry;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
/**
* @implements SaveHook<AddressCountry>
*/
class BeforeSave implements SaveHook
{
public function __construct(
private EntityManager $entityManager,
) {}
public function process(Entity $entity): void
{
$where = ['name' => $entity->getName()];
if (!$entity->isNew()) {
$where['id!='] = $entity->getId();
}
$one = $this->entityManager
->getRDBRepositoryByClass(AddressCountry::class)
->where($where)
->findOne();
if (!$one) {
return;
}
throw ConflictSilent::createWithBody(
'duplicateError',
Body::create()->withMessageTranslation('duplicateConflict')
);
}
}
@@ -27,18 +27,19 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Modules\Crm\Services;
namespace Espo\Classes\RecordHooks\Attachment;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Attachment;
use Espo\ORM\Entity;
class Call extends Meeting
/**
* @implements SaveHook<Attachment>
*/
class AfterCreate implements SaveHook
{
protected function afterUpdateEntity(Entity $entity, $data)
public function process(Entity $entity): void
{
parent::afterUpdateEntity($entity, $data);
if (isset($data->contactsIds) || isset($data->leadsIds)) {
$this->loadAdditionalFields($entity);
}
$entity->clear('contents');
}
}
@@ -0,0 +1,100 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Attachment;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\Entities\Attachment;
use Espo\ORM\Entity;
use Espo\Tools\Attachment\Checker;
use Espo\Tools\Attachment\DetailsObtainer;
/**
* @implements SaveHook<Attachment>
*/
class BeforeCreate implements SaveHook
{
public function __construct(
private Config $config,
private Metadata $metadata,
private DetailsObtainer $detailsObtainer,
private Checker $checker
) {}
public function process(Entity $entity): void
{
$this->processStorage($entity);
$this->processRole($entity);
$this->processSize($entity);
$this->checker->checkType($entity);
}
private function processStorage(Attachment $entity): void
{
$storage = $entity->getStorage();
$availableStorageList = $this->config->get('attachmentAvailableStorageList') ?? [];
if (
$storage &&
(
!in_array($storage, $availableStorageList) ||
!$this->metadata->get(['app', 'fileStorage', 'implementationClassNameMap', $storage])
)
) {
$entity->clear('storage');
}
}
/**
* @throws Forbidden
*/
private function processSize(Attachment $entity): void
{
$size = $entity->getSize();
$maxSize = $this->detailsObtainer->getUploadMaxSize($entity);
// Checking not actual file size but a set value.
if ($size && $size > $maxSize) {
throw new Forbidden("Attachment size exceeds `attachmentUploadMaxSize`.");
}
}
private function processRole(Attachment $entity): void
{
if (!$entity->getRole()) {
$entity->setRole(Attachment::ROLE_ATTACHMENT);
}
}
}
@@ -0,0 +1,64 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Mail\Exceptions\NoSmtp;
use Espo\Core\Mail\Exceptions\SendingError;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\Tools\Email\SendService;
/**
* @implements SaveHook<Email>
*/
class AfterUpdate implements SaveHook
{
public function __construct(
private User $user,
private SendService $sendService
) {}
/**
* @throws BadRequest
* @throws Error
* @throws NoSmtp
* @throws SendingError
*/
public function process(Entity $entity): void
{
if ($entity->getStatus() === Email::STATUS_SENDING) {
$this->sendService->send($entity, $this->user);
}
}
}
@@ -0,0 +1,50 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Mail\Sender;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Email;
use Espo\ORM\Entity;
/**
* @implements SaveHook<Email>
*/
class BeforeCreate implements SaveHook
{
public function process(Entity $entity): void
{
if ($entity->getStatus() === Email::STATUS_SENDING) {
$messageId = Sender::generateMessageId($entity);
$entity->setMessageId('<' . $messageId . '>');
}
}
}
@@ -0,0 +1,151 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Mail\Sender;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\FieldUtil;
use Espo\Core\Utils\SystemUser;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
/**
* @implements SaveHook<Email>
*/
class BeforeUpdate implements SaveHook
{
/** @var string[] */
private $allowedForUpdateFieldList = [
'parent',
'teams',
'assignedUser',
];
public function __construct(
private User $user,
private EntityManager $entityManager,
private FieldUtil $fieldUtil
) {}
public function process(Entity $entity): void
{
$skipFilter = false;
if ($this->user->isAdmin()) {
$skipFilter = true;
}
if ($this->isEmailManuallyArchived($entity)) {
$skipFilter = true;
}
else if ($entity->isAttributeChanged('dateSent')) {
$entity->set('dateSent', $entity->getFetched('dateSent'));
}
if ($entity->getStatus() === Email::STATUS_DRAFT) {
$skipFilter = true;
}
if (
$entity->getStatus() === Email::STATUS_SENDING &&
$entity->getFetched('status') === Email::STATUS_DRAFT
) {
$skipFilter = true;
}
if (
$entity->isAttributeChanged('status') &&
$entity->getFetched('status') === Email::STATUS_ARCHIVED
) {
$entity->setStatus(Email::STATUS_ARCHIVED);
}
if (!$skipFilter) {
$this->clearEntityForUpdate($entity);
}
if ($entity->getStatus() == Email::STATUS_SENDING) {
$messageId = Sender::generateMessageId($entity);
$entity->setMessageId('<' . $messageId . '>');
}
}
private function isEmailManuallyArchived(Email $email): bool
{
if ($email->getStatus() !== Email::STATUS_ARCHIVED) {
return false;
}
$userId = $email->getCreatedBy()?->getId();
if (!$userId) {
return false;
}
$user = $this->entityManager
->getRDBRepositoryByClass(User::class)
->getById($userId);
if (!$user) {
return true;
}
return $user->getUserName() !== SystemUser::NAME;
}
private function clearEntityForUpdate(Email $email): void
{
$fieldDefsList = $this->entityManager
->getDefs()
->getEntity(Email::ENTITY_TYPE)
->getFieldList();
foreach ($fieldDefsList as $fieldDefs) {
$field = $fieldDefs->getName();
if ($fieldDefs->getParam('isCustom')) {
continue;
}
if (in_array($field, $this->allowedForUpdateFieldList)) {
continue;
}
$attributeList = $this->fieldUtil->getAttributeList(Email::ENTITY_TYPE, $field);
foreach ($attributeList as $attribute) {
$email->clear($attribute);
}
}
}
}
@@ -0,0 +1,101 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Acl;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Mail\Account\SendingAccountProvider;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @implements SaveHook<Email>
*/
class CheckFromAddress implements SaveHook
{
public function __construct(
private User $user,
private SendingAccountProvider $sendingAccountProvider,
private Config $config,
private Acl $acl,
) {}
public function process(Entity $entity): void
{
if ($this->user->isAdmin()) {
return;
}
$fromAddress = $entity->getFromAddress();
// Should be after 'getFromAddress'.
if (!$entity->isAttributeChanged('from')) {
return;
}
if (!$fromAddress) {
throw new BadRequest("No 'from' address");
}
if ($this->acl->checkScope('Import')) {
return;
}
$fromAddress = strtolower($fromAddress);
foreach ($this->user->getEmailAddressGroup()->getAddressList() as $address) {
if ($fromAddress === strtolower($address)) {
return;
}
}
if ($this->sendingAccountProvider->getShared($this->user, $fromAddress)) {
return;
}
$system = $this->sendingAccountProvider->getSystem();
if (
$system &&
$this->config->get('outboundEmailIsShared') &&
$system->getEmailAddress()
) {
if ($fromAddress === strtolower($system->getEmailAddress())) {
return;
}
}
throw new Forbidden("Not allowed 'from' address.");
}
}
@@ -0,0 +1,55 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Record\Hook\ReadHook;
use Espo\Core\Record\ReadParams;
use Espo\Entities\Email;
use Espo\ORM\Entity;
use Espo\Tools\Email\InboxService;
/**
* @implements ReadHook<Email>
*/
class MarkAsRead implements ReadHook
{
public function __construct(
private InboxService $inboxService
) {}
public function process(Entity $entity, ReadParams $params): void
{
if ($entity->isRead()) {
return;
}
$this->inboxService->markAsRead($entity->getId());
}
}
@@ -0,0 +1,54 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Email;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Email;
use Espo\ORM\Entity;
use Espo\Tools\Email\InboxService;
/**
* @implements SaveHook<Email>
*/
class MarkAsReadBeforeUpdate implements SaveHook
{
public function __construct(
private InboxService $inboxService
) {}
public function process(Entity $entity): void
{
if ($entity->isRead()) {
return;
}
$this->inboxService->markAsRead($entity->getId());
}
}
@@ -0,0 +1,69 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\EmailAccount;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Entities\EmailAccount;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
use const PHP_INT_MAX;
/**
* @implements SaveHook<EmailAccount>
*/
class BeforeCreate implements SaveHook
{
public function __construct(
private User $user,
private Config $config,
private EntityManager $entityManager
) {}
public function process(Entity $entity): void
{
if ($this->user->isAdmin()) {
return;
}
$entity->set('assignedUserId', $this->user->getId());
$count = $this->entityManager
->getRDBRepository(EmailAccount::ENTITY_TYPE)
->where(['assignedUserId' => $this->user->getId()])
->count();
if ($count >= $this->config->get('maxEmailAccountCount', PHP_INT_MAX)) {
throw new Forbidden("Email Account number for user limit exceeded.");
}
}
}
@@ -27,32 +27,33 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\RecordHooks\EmailFilter;
use Espo\Core\Acl;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\EmailAccount as EmailAccountEntity;
use Espo\Entities\EmailFilter as EmailFilterEntity;
use Espo\Entities\EmailFilter;
use Espo\Entities\InboundEmail as InboundEmailEntity;
use Espo\Entities\User as UserEntity;
use Espo\ORM\Entity;
use Espo\Core\Exceptions\Forbidden;
use stdClass;
/**
* @extends Record<EmailFilterEntity>
* @implements SaveHook<EmailFilter>
*/
class EmailFilter extends Record
class BeforeSave implements SaveHook
{
/**
* @param EmailFilterEntity $entity
* @throws Forbidden
*/
protected function beforeCreateEntity(Entity $entity, $data)
{
parent::beforeCreateEntity($entity, $data);
public function __construct(
private Acl $acl
) {}
/**
* @inheritDoc
*/
public function process(Entity $entity): void
{
// Check if own.
if (!$this->acl->checkEntityEdit($entity)) {
if ($entity->isNew() && !$this->acl->checkEntityEdit($entity)) {
throw new Forbidden();
}
@@ -60,26 +61,17 @@ class EmailFilter extends Record
}
/**
* @param EmailFilterEntity $entity
* @throws Forbidden
*/
protected function beforeUpdateEntity(Entity $entity, $data)
{
parent::beforeUpdateEntity($entity, $data);
$this->controlEntityValues($entity);
}
/**
* @throws Forbidden
*/
private function controlEntityValues(EmailFilterEntity $entity): void
private function controlEntityValues(EmailFilter $entity): void
{
if ($entity->isGlobal()) {
$entity->set('parentId', null);
$entity->set('parentType', null);
$entity->setMultiple([
'parentType' => null,
'parentId' => null,
]);
if ($entity->getAction() !== EmailFilterEntity::ACTION_SKIP) {
if ($entity->getAction() !== EmailFilter::ACTION_SKIP) {
throw new Forbidden("Not allowed `action`.");
}
}
@@ -93,9 +85,9 @@ class EmailFilter extends Record
!in_array(
$entity->getAction(),
[
EmailFilterEntity::ACTION_NONE,
EmailFilterEntity::ACTION_SKIP,
EmailFilterEntity::ACTION_MOVE_TO_FOLDER,
EmailFilter::ACTION_NONE,
EmailFilter::ACTION_SKIP,
EmailFilter::ACTION_MOVE_TO_FOLDER,
]
)
) {
@@ -107,8 +99,8 @@ class EmailFilter extends Record
!in_array(
$entity->getAction(),
[
EmailFilterEntity::ACTION_SKIP,
EmailFilterEntity::ACTION_MOVE_TO_GROUP_FOLDER,
EmailFilter::ACTION_SKIP,
EmailFilter::ACTION_MOVE_TO_GROUP_FOLDER,
]
)
) {
@@ -117,26 +109,19 @@ class EmailFilter extends Record
if (
$entity->getParentType() === EmailAccountEntity::ENTITY_TYPE &&
$entity->getAction() !== EmailFilterEntity::ACTION_SKIP
$entity->getAction() !== EmailFilter::ACTION_SKIP
) {
throw new Forbidden("Not allowed `action`.");
}
if ($entity->getAction() !== EmailFilterEntity::ACTION_MOVE_TO_FOLDER) {
if ($entity->getAction() !== EmailFilter::ACTION_MOVE_TO_FOLDER) {
/** @noinspection PhpRedundantOptionalArgumentInspection */
$entity->set('emailFolderId', null);
}
if ($entity->getAction() !== EmailFilterEntity::ACTION_MOVE_TO_GROUP_FOLDER) {
if ($entity->getAction() !== EmailFilter::ACTION_MOVE_TO_GROUP_FOLDER) {
/** @noinspection PhpRedundantOptionalArgumentInspection */
$entity->set('groupEmailFolderId', null);
}
}
public function filterUpdateInput(stdClass $data): void
{
parent::filterUpdateInput($data);
unset($data->isGlobal);
unset($data->parentId);
unset($data->parentType);
}
}
@@ -27,20 +27,27 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\RecordHooks\EmailFolder;
use Espo\ORM\Entity;
use Espo\Core\Acl;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\EmailFolder;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @extends Record<\Espo\Entities\EmailFolder>
* @implements SaveHook<EmailFolder>
*/
class EmailFolder extends Record
class BeforeCreate implements SaveHook
{
protected function beforeCreateEntity(Entity $entity, $data)
{
parent::beforeCreateEntity($entity, $data);
public function __construct(
private User $user,
private Acl $acl
) {}
public function process(Entity $entity): void
{
if (!$this->user->isAdmin() || !$entity->get('assignedUserId')) {
$entity->set('assignedUserId', $this->user->getId());
}
@@ -0,0 +1,53 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\LeadCapture;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\LeadCapture;
use Espo\ORM\Entity;
use Espo\Tools\LeadCapture\Service;
/**
* @noinspection PhpUnused
* @implements SaveHook<LeadCapture>
*/
class BeforeCreate implements SaveHook
{
public function __construct(
private Service $service
) {}
public function process(Entity $entity): void
{
$apiKey = $this->service->generateApiKey();
$entity->setApiKey($apiKey);
}
}
@@ -0,0 +1,90 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Note;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Metadata;
use Espo\Entities\Note;
use Espo\Entities\Note as NoteEntity;
use Espo\Entities\Preferences;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
use Espo\Tools\Stream\Service;
/**
* @implements SaveHook<Note>
* @noinspection PhpUnused
*/
class AfterCreate implements SaveHook
{
public function __construct(
private EntityManager $entityManager,
private User $user,
private Metadata $metadata,
private Service $streamService
) {}
public function process(Entity $entity): void
{
$parentType = $entity->getParentType();
$parentId = $entity->getParentId();
if (
$entity->getType() !== NoteEntity::TYPE_POST ||
!$parentType ||
!$parentId
) {
return;
}
if (!$this->metadata->get(['scopes', $parentType, 'stream'])) {
return;
}
$preferences = $this->entityManager->getEntityById(Preferences::ENTITY_TYPE, $this->user->getId());
if (!$preferences) {
return;
}
if (!$preferences->get('followEntityOnStreamPost')) {
return;
}
$parent = $this->entityManager->getEntityById($parentType, $parentId);
if (!$parent || $this->user->isSystem() || $this->user->isApi()) {
return;
}
$this->streamService->followEntity($parent, $this->user->getId());
}
}
@@ -0,0 +1,196 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Note;
use Espo\Core\Acl;
use Espo\Core\Acl\Permission;
use Espo\Core\Acl\Table as AclTable;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Note;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
use Espo\Repositories\User as UserRepository;
/**
* @implements SaveHook<Note>
*/
class AssignmentCheck implements SaveHook
{
public function __construct(
private User $user,
private Acl $acl,
private EntityManager $entityManager
) {}
public function process(Entity $entity): void
{
$targetType = $entity->getTargetType();
if (!$targetType) {
return;
}
$userTeamIdList = $this->user->getTeamIdList();
$userIdList = $entity->getLinkMultipleIdList('users');
$portalIdList = $entity->getLinkMultipleIdList('portals');
$teamIdList = $entity->getLinkMultipleIdList('teams');
/** @var iterable<User> $targetUserList */
$targetUserList = [];
if ($targetType === Note::TARGET_USERS) {
/** @var iterable<User> $targetUserList */
$targetUserList = $this->entityManager
->getRDBRepository(User::ENTITY_TYPE)
->select(['id', 'type'])
->where(['id' => $userIdList])
->find();
}
$hasPortalTargetUser = false;
$allTargetUsersArePortal = true;
foreach ($targetUserList as $user) {
if (!$user->isPortal()) {
$allTargetUsersArePortal = false;
}
if ($user->isPortal()) {
$hasPortalTargetUser = true;
}
}
$messagePermission = $this->acl->getPermissionLevel(Permission::MESSAGE);
if ($messagePermission === AclTable::LEVEL_NO) {
if (
$targetType !== Note::TARGET_SELF &&
$targetType !== Note::TARGET_PORTALS &&
!(
$targetType === Note::TARGET_USERS &&
count($userIdList) === 1 &&
$userIdList[0] === $this->user->getId()
) &&
!(
$targetType === Note::TARGET_USERS && $allTargetUsersArePortal
)
) {
throw new Forbidden('Not permitted to post to anybody except self.');
}
}
if ($targetType === Note::TARGET_TEAMS) {
if (empty($teamIdList)) {
throw new BadRequest("No team IDS.");
}
}
if ($targetType === Note::TARGET_USERS) {
if (empty($userIdList)) {
throw new BadRequest("No user IDs.");
}
}
if ($targetType === Note::TARGET_PORTALS) {
if (empty($portalIdList)) {
throw new BadRequest("No portal IDs.");
}
if ($this->acl->getPermissionLevel(Permission::PORTAL) !== AclTable::LEVEL_YES) {
throw new Forbidden('Not permitted to post to portal users.');
}
}
if (
$targetType === Note::TARGET_USERS &&
$this->acl->getPermissionLevel(Permission::PORTAL) !== AclTable::LEVEL_YES
) {
if ($hasPortalTargetUser) {
throw new Forbidden('Not permitted to post to portal users.');
}
}
if ($messagePermission === AclTable::LEVEL_TEAM) {
if ($targetType === Note::TARGET_ALL) {
throw new Forbidden('Not permitted to post to all.');
}
}
if (
$messagePermission === AclTable::LEVEL_TEAM &&
$targetType === Note::TARGET_TEAMS
) {
if (empty($userTeamIdList)) {
throw new Forbidden('Not permitted to post to foreign teams.');
}
foreach ($teamIdList as $teamId) {
if (!in_array($teamId, $userTeamIdList)) {
throw new Forbidden("Not permitted to post to foreign teams.");
}
}
}
if (
$messagePermission === AclTable::LEVEL_TEAM &&
$targetType === Note::TARGET_USERS
) {
if (empty($userTeamIdList)) {
throw new Forbidden('Not permitted to post to users from foreign teams.');
}
foreach ($targetUserList as $user) {
if ($user->getId() === $this->user->getId()) {
continue;
}
if ($user->isPortal()) {
continue;
}
$inTeam = $this->getUserRepository()->checkBelongsToAnyOfTeams($user->getId(), $userTeamIdList);
if (!$inTeam) {
throw new Forbidden('Not permitted to post to users from foreign teams.');
}
}
}
}
private function getUserRepository(): UserRepository
{
/** @var UserRepository */
return $this->entityManager->getRepository(User::ENTITY_TYPE);
}
}
@@ -0,0 +1,136 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Note;
use Espo\Core\Acl;
use Espo\Core\Acl\Table as AclTable;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Note;
use Espo\Entities\User;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
use Espo\Tools\Stream\NoteUtil;
/**
* @implements SaveHook<Note>
* @noinspection PhpUnused
*/
class BeforeCreate implements SaveHook
{
public function __construct(
private EntityManager $entityManager,
private Acl $acl,
private User $user,
private NoteUtil $noteUtil
) {}
public function process(Entity $entity): void
{
$this->checkParent($entity);
if (!$entity->isPost() && !$this->user->isAdmin()) {
throw new Forbidden("Only 'Post' type allowed.");
}
if ($this->user->isPortal()) {
$entity->set('isInternal', false);
}
if ($entity->isPost()) {
$this->noteUtil->handlePostText($entity);
}
$targetType = $entity->getTargetType();
$entity->clear('isPinned');
$entity->clear('isGlobal');
switch ($targetType) {
case Note::TARGET_ALL:
$entity->clear('usersIds');
$entity->clear('teamsIds');
$entity->clear('portalsIds');
$entity->set('isGlobal', true);
break;
case Note::TARGET_SELF:
$entity->clear('usersIds');
$entity->clear('teamsIds');
$entity->clear('portalsIds');
$entity->setUsersIds([$this->user->getId()]);
$entity->set('isForSelf', true);
break;
case Note::TARGET_USERS:
$entity->clear('teamsIds');
$entity->clear('portalsIds');
break;
case Note::TARGET_TEAMS:
$entity->clear('usersIds');
$entity->clear('portalsIds');
break;
case Note::TARGET_PORTALS:
$entity->clear('usersIds');
$entity->clear('teamsIds');
break;
}
}
/**
* @throws Forbidden
*/
private function checkParent(Note $entity): void
{
if (!$entity->getParentType() || !$entity->getParentId()) {
return;
}
$parent = $this->entityManager->getEntityById($entity->getParentType(), $entity->getParentId());
if ($parent && $this->acl->check($parent, AclTable::ACTION_READ)) {
return;
}
throw new Forbidden("No access to parent.");
}
}
@@ -0,0 +1,68 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Note;
use Espo\Core\Exceptions\ForbiddenSilent;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Note;
use Espo\ORM\Entity;
use Espo\Tools\Stream\NoteUtil;
/**
* @implements SaveHook<Note>
* @noinspection PhpUnused
*/
class BeforeUpdate implements SaveHook
{
public function __construct(
private NoteUtil $noteUtil,
) {}
public function process(Entity $entity): void
{
if (!$this->isEditableType($entity)) {
throw new ForbiddenSilent("Note is not editable.");
}
if ($entity->isPost()) {
$this->noteUtil->handlePostText($entity);
}
if (!$entity->isPost()) {
$entity->clear('post');
$entity->clear('attachmentsIds');
}
}
private function isEditableType(Note $entity): bool
{
return $entity->getType() == Note::TYPE_POST;
}
}
@@ -27,45 +27,42 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\RecordHooks\Portal;
use Espo\Core\Acl\Cache\Clearer as AclCacheClearer;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Portal;
use Espo\ORM\Entity;
use Espo\Core\Di;
use Espo\ORM\EntityManager;
use Espo\Repositories\Portal as PortalRepository;
/**
* @extends Record<\Espo\Entities\PortalRole>
* @implements SaveHook<Portal>
*/
class PortalRole extends Record implements
Di\DataManagerAware
class AfterUpdate implements SaveHook
{
use Di\DataManagerSetter;
public function __construct(
private Clearer $clearer,
private DataManager $dataManager,
private EntityManager $entityManager
) {}
protected $forceSelectAllAttributes = true;
public function afterCreateEntity(Entity $entity, $data)
public function process(Entity $entity): void
{
parent::afterCreateEntity($entity, $data);
$this->clearRolesCache();
}
$this->getPortalRepository()->loadUrlField($entity);
public function afterUpdateEntity(Entity $entity, $data)
{
parent::afterUpdateEntity($entity, $data);
$this->clearRolesCache();
}
protected function clearRolesCache(): void
{
$this->createAclCacheClearer()->clearForAllPortalUsers();
if (!$entity->isAttributeChanged('portalRolesIds')) {
return;
}
$this->clearer->clearForAllPortalUsers();
$this->dataManager->updateCacheTimestamp();
}
private function createAclCacheClearer(): AclCacheClearer
private function getPortalRepository(): PortalRepository
{
return $this->injectableFactory->create(AclCacheClearer::class);
/** @var PortalRepository */
return $this->entityManager->getRDBRepositoryByClass(Portal::class);
}
}
@@ -0,0 +1,53 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\PortalRole;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\PortalRole;
use Espo\ORM\Entity;
/**
* @implements SaveHook<PortalRole>
*/
class AfterSave implements SaveHook
{
public function __construct(
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity): void
{
$this->clearer->clearForAllInternalUsers();
$this->dataManager->updateCacheTimestamp();
}
}
@@ -0,0 +1,53 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Role;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Role;
use Espo\ORM\Entity;
/**
* @implements SaveHook<Role>
*/
class AfterSave implements SaveHook
{
public function __construct(
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity): void
{
$this->clearer->clearForAllInternalUsers();
$this->dataManager->updateCacheTimestamp();
}
}
@@ -0,0 +1,232 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Role;
use Espo\Core\Acl\Table;
use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Portal\Acl\Table as TablePortal;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Metadata;
use Espo\Entities\PortalRole;
use Espo\Entities\Role;
use Espo\ORM\Entity;
use stdClass;
/**
* @noinspection PhpUnused
* @implements SaveHook<Role|PortalRole>
*/
class BeforeSaveValidate implements SaveHook
{
/** @var string[] */
private array $levelList = [
Table::LEVEL_YES,
Table::LEVEL_ALL,
Table::LEVEL_TEAM,
Table::LEVEL_OWN,
Table::LEVEL_NO,
];
/** @var string[] */
private array $portalLevelList = [
Table::LEVEL_YES,
Table::LEVEL_ALL,
TablePortal::LEVEL_ACCOUNT,
TablePortal::LEVEL_CONTACT,
Table::LEVEL_OWN,
Table::LEVEL_NO,
];
public function __construct(
private Metadata $metadata
) {}
public function process(Entity $entity): void
{
$this->validateData($entity);
$this->validateFieldData($entity);
}
/**
* @throws BadRequest
*/
private function validateData(Role|PortalRole $entity): void
{
if ($entity->get('data') === null) {
return;
}
/** @var array<string, mixed> $data */
$data = get_object_vars($entity->get('data'));
foreach ($data as $scope => $item) {
if (!is_bool($item) && !$item instanceof stdClass) {
throw new BadRequest("Bad data. Should be bool or object.");
}
$this->validateDataItem($scope, $entity, $item);
}
}
/**
* @throws BadRequest
*/
private function validateDataItem(string $scope, Role|PortalRole $entity, bool|stdClass $item): void
{
$key = $entity instanceof PortalRole ?
'aclPortal' : 'acl';
$type = $this->metadata->get("scopes.$scope.$key");
if ($type === 'boolean') {
if (!is_bool($item)) {
throw new BadRequest("Bad data. Value for *$scope* should be be bool.");
}
return;
}
if ($type === null) {
throw new BadRequest("Bad data. Scope *$scope* is not allowed.");
}
if ($item === false) {
return;
}
if (is_bool($item)) {
throw new BadRequest("Bad data. Value for *$scope* should be be false or object.");
}
$actions = [
Table::ACTION_CREATE,
Table::ACTION_READ,
Table::ACTION_EDIT,
Table::ACTION_DELETE,
Table::ACTION_STREAM,
];
$levels = $entity instanceof PortalRole ?
$this->portalLevelList : $this->levelList;
foreach ($actions as $action) {
if (!property_exists($item, $action)) {
continue;
}
$level = $item->$action;
if (!in_array($level, $levels)) {
throw new BadRequest("Level `$level` is not allowed for action *$action* for *$scope*.");
}
}
}
/**
* @throws BadRequest
*/
private function validateFieldData(Role|PortalRole $entity): void
{
if ($entity->get('fieldData') === null) {
return;
}
/** @var array<string, mixed> $data */
$data = get_object_vars($entity->get('fieldData'));
foreach ($data as $scope => $item) {
if (!$item instanceof stdClass) {
throw new BadRequest("Bad field-level data. Should be object.");
}
$this->validateFieldDataItem($scope, $entity, $item);
}
}
/**
* @throws BadRequest
*/
private function validateFieldDataItem(string $scope, PortalRole|Role $entity, stdClass $item): void
{
$disabledKey = $entity instanceof PortalRole ? 'aclPortalFieldLevelDisabled' : 'aclFieldLevelDisabled';
$key = $entity instanceof PortalRole ? 'aclPortal' : 'acl';
if (
!$this->metadata->get("scopes.$scope.entity") ||
!$this->metadata->get("scopes.$scope.$key") ||
$this->metadata->get("scopes.$scope.$disabledKey")
) {
throw new BadRequest("Bad field-level data. Scope *$scope* is not allowed.");
}
/** @var array<string, mixed> $data */
$data = get_object_vars($item);
foreach ($data as $field => $fieldItem) {
if (!$fieldItem instanceof stdClass) {
throw new BadRequest("Data for field *$field*, scope *$scope* should be object.");
}
$this->validateFieldDataItemItem($scope, $field, $fieldItem);
}
}
/**
* @throws BadRequest
*/
private function validateFieldDataItemItem(string $scope, string $field, stdClass $item): void
{
if (!$this->metadata->get("entityDefs.$scope.fields.$field")) {
throw new BadRequest("Field *$field* does not exist in *$scope*.");
}
$actions = [
Table::ACTION_READ,
Table::ACTION_EDIT,
];
$levels = [
Table::LEVEL_YES,
Table::LEVEL_NO,
];
foreach ($actions as $action) {
if (!property_exists($item, $action)) {
continue;
}
$level = $item->$action;
if (!in_array($level, $levels)) {
throw new BadRequest("Level `$level` is not allowed for *$scope*, field *$field*.");
}
}
}
}
@@ -0,0 +1,58 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Team;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Entities\Team;
use Espo\ORM\Entity;
/**
* @implements SaveHook<Team>
* @noinspection PhpUnused
*/
class AfterUpdate implements SaveHook
{
public function __construct(
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity): void
{
if (!$entity->isAttributeChanged('rolesIds')) {
return;
}
$this->clearer->clearForAllInternalUsers();
$this->dataManager->updateCacheTimestamp();
}
}
@@ -0,0 +1,58 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Team;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\LinkHook;
use Espo\Entities\Team;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @implements LinkHook<Team>
*/
class ClearCacheAfterLink implements LinkHook
{
public function __construct(
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity, string $link, Entity $foreignEntity): void
{
if ($link !== 'users' || !$foreignEntity instanceof User) {
return;
}
$this->clearer->clearForUser($foreignEntity);
$this->dataManager->updateCacheTimestamp();
}
}
@@ -0,0 +1,58 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Team;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\UnlinkHook;
use Espo\Entities\Team;
use Espo\Entities\User;
use Espo\ORM\Entity;
/**
* @implements UnlinkHook<Team>
*/
class ClearCacheAfterUnlink implements UnlinkHook
{
public function __construct(
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity, string $link, Entity $foreignEntity): void
{
if ($link !== 'users' || !$foreignEntity instanceof User) {
return;
}
$this->clearer->clearForUser($foreignEntity);
$this->dataManager->updateCacheTimestamp();
}
}
@@ -0,0 +1,114 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\User;
use Espo\Core\Acl\Cache\Clearer;
use Espo\Core\DataManager;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Modules\Crm\Entities\Contact;
use Espo\ORM\Entity;
use Espo\Entities\User;
use Espo\ORM\EntityManager;
/**
* @implements SaveHook<User>
* @noinspection PhpUnused
*/
class AfterUpdate implements SaveHook
{
public function __construct(
private EntityManager $entityManager,
private Clearer $clearer,
private DataManager $dataManager
) {}
public function process(Entity $entity): void
{
$this->processCache($entity);
$this->processContactName($entity);
}
private function processCache(User $entity): void
{
if (
$entity->isAttributeChanged('rolesIds') ||
$entity->isAttributeChanged('teamsIds') ||
$entity->isAttributeChanged('type') ||
$entity->isAttributeChanged('portalRolesIds') ||
$entity->isAttributeChanged('portalsIds')
) {
$this->clearer->clearForUser($entity);
$this->dataManager->updateCacheTimestamp();
}
if (
$entity->isAttributeChanged('portalRolesIds') ||
$entity->isAttributeChanged('portalsIds') ||
$entity->isAttributeChanged('contactId') ||
$entity->isAttributeChanged('accountsIds')
) {
$this->clearer->clearForAllPortalUsers();
$this->dataManager->updateCacheTimestamp();
}
}
private function processContactName(User $entity): void
{
if (
!$entity->isPortal() ||
!$entity->getContactId() ||
!$entity->isAttributeChanged('firstName') &&
!$entity->isAttributeChanged('lastName') &&
!$entity->isAttributeChanged('salutationName')
) {
return;
}
$contact = $this->entityManager->getEntityById(Contact::ENTITY_TYPE, $entity->getContactId());
if (!$contact) {
return;
}
if ($entity->isAttributeChanged('firstName')) {
$contact->set('firstName', $entity->get('firstName'));
}
if ($entity->isAttributeChanged('lastName')) {
$contact->set('lastName', $entity->get('lastName'));
}
if ($entity->isAttributeChanged('salutationName')) {
$contact->set('salutationName', $entity->get('salutationName'));
}
$this->entityManager->saveEntity($contact);
}
}
@@ -0,0 +1,135 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\User;
use Espo\Core\Authentication\Logins\Hmac;
use Espo\Core\Exceptions\Conflict;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Util;
use Espo\ORM\Entity;
use Espo\Entities\User;
use Espo\Tools\User\UserUtil;
/**
* @implements SaveHook<User>
* @noinspection PhpUnused
*/
class BeforeCreate implements SaveHook
{
public function __construct(
private Config $config,
private User $user,
private UserUtil $util
) {}
public function process(Entity $entity): void
{
$this->processLimitChecking($entity);
$this->processUserExistsChecking($entity);
$this->processApi($entity);
$this->processTypeChecking($entity);
}
/**
* @throws Conflict
*/
private function processUserExistsChecking(User $entity): void
{
if ($this->util->checkExists($entity)) {
throw new Conflict('userNameExists');
}
}
/**
* @throws Forbidden
*/
private function processLimitChecking(User $entity): void
{
$userLimit = $this->config->get('userLimit');
$portalUserLimit = $this->config->get('portalUserLimit');
if (
$userLimit &&
!$this->user->isSuperAdmin() &&
!$entity->isPortal() && !$entity->isApi()
) {
$userCount = $this->util->getInternalCount();
if ($userCount >= $userLimit) {
throw new Forbidden("User limit $userLimit is reached.");
}
}
if (
$portalUserLimit &&
!$this->user->isSuperAdmin() &&
$entity->isPortal()
) {
$portalUserCount = $this->util->getPortalCount();
if ($portalUserCount >= $portalUserLimit) {
throw new Forbidden("Portal user limit $portalUserLimit is reached.");
}
}
}
private function processApi(User $entity): void
{
if (!$entity->isApi()) {
return;
}
$entity->set('apiKey', Util::generateApiKey());
if ($entity->getAuthMethod() === Hmac::NAME) {
$secretKey = Util::generateSecretKey();
$entity->set('secretKey', $secretKey);
}
}
/**
* @throws Forbidden
*/
private function processTypeChecking(User $entity): void
{
if (
$entity->isSuperAdmin() ||
!$entity->getType() ||
in_array($entity->getType(), $this->util->getAllowedUserTypeList())
) {
return;
}
throw new Forbidden("Not allowed 'type'.");
}
}
@@ -0,0 +1,171 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\User;
use Espo\Core\Authentication\Logins\Hmac;
use Espo\Core\Exceptions\Conflict;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Util;
use Espo\Entities\User as UserEntity;
use Espo\ORM\Entity;
use Espo\Entities\User;
use Espo\Tools\User\UserUtil;
/**
* @implements SaveHook<User>
* @noinspection PhpUnused
*/
class BeforeUpdate implements SaveHook
{
public function __construct(
private Config $config,
private User $user,
private UserUtil $util
) {}
public function process(Entity $entity): void
{
$this->processLimitChecking($entity);
$this->processUserExistsChecking($entity);
$this->processApi($entity);
$this->processTypeChecking($entity);
}
/**
* @throws Conflict
*/
private function processUserExistsChecking(User $entity): void
{
if (!$entity->isAttributeChanged('userName')) {
return;
}
if ($this->util->checkExists($entity)) {
throw new Conflict('userNameExists');
}
}
/**
* @throws Forbidden
*/
private function processLimitChecking(User $entity): void
{
$userLimit = $this->config->get('userLimit');
$portalUserLimit = $this->config->get('portalUserLimit');
if (
$userLimit &&
!$this->user->isSuperAdmin() &&
(
(
$entity->isActive() &&
$entity->isAttributeChanged('isActive') &&
!$entity->isPortal() &&
!$entity->isApi()
) ||
(
!$entity->isPortal() &&
!$entity->isApi() &&
$entity->isAttributeChanged('type') &&
(
$entity->isRegular() ||
$entity->isAdmin()
) &&
(
$entity->getFetched('type') == UserEntity::TYPE_PORTAL ||
$entity->getFetched('type') == UserEntity::TYPE_API
)
)
)
) {
$userCount = $this->util->getInternalCount();
if ($userCount >= $userLimit) {
throw new Forbidden("User limit $userLimit is reached.");
}
}
if (
$portalUserLimit &&
!$this->user->isSuperAdmin() &&
(
(
$entity->isActive() &&
$entity->isAttributeChanged('isActive') &&
$entity->isPortal()
) ||
(
$entity->isPortal() &&
$entity->isAttributeChanged('type')
)
)
) {
$portalUserCount = $this->util->getPortalCount();
if ($portalUserCount >= $portalUserLimit) {
throw new Forbidden("Portal user limit $portalUserLimit is reached.");
}
}
}
private function processApi(User $entity): void
{
if (
!$entity->isApi() ||
!$entity->isAttributeChanged('authMethod') ||
$entity->getAuthMethod() !== Hmac::NAME
) {
return;
}
$secretKey = Util::generateSecretKey();
$entity->set('secretKey', $secretKey);
}
/**
* @throws Forbidden
*/
private function processTypeChecking(User $entity): void
{
if (
$entity->isSuperAdmin() ||
!$entity->isAttributeChanged('type') ||
!$entity->getType() ||
in_array($entity->getType(), $this->util->getAllowedUserTypeList())
) {
return;
}
throw new Forbidden("Can't change type.");
}
}
@@ -0,0 +1,62 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Webhook;
use Espo\Core\Record\DeleteParams;
use Espo\Core\Record\Hook\DeleteHook;
use Espo\Core\Webhook\Manager;
use Espo\Entities\Webhook;
use Espo\ORM\Entity;
/**
* @implements DeleteHook<Webhook>
* @noinspection PhpUnused
*/
class AfterDelete implements DeleteHook
{
public function __construct(
private Manager $webhookManager
) {}
public function process(Entity $entity, DeleteParams $params): void
{
$event = $entity->getEvent();
if (!$event) {
return;
}
if (!$entity->isActive()) {
return;
}
$this->webhookManager->removeEvent($event);
}
}
@@ -0,0 +1,75 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\RecordHooks\Webhook;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Webhook\Manager;
use Espo\Entities\Webhook;
use Espo\ORM\Entity;
use RuntimeException;
/**
* @implements SaveHook<Webhook>
*/
class AfterSave implements SaveHook
{
public function __construct(
private Manager $webhookManager
) {}
public function process(Entity $entity): void
{
$event = $entity->getEvent();
if (!$event) {
throw new RuntimeException("No 'event'.");
}
if ($entity->isNew()) {
if ($entity->isActive()) {
$this->webhookManager->addEvent($event);
}
return;
}
if (!$entity->isAttributeChanged('isActive')) {
return;
}
if ($entity->isActive()) {
$this->webhookManager->addEvent($event);
return;
}
$this->webhookManager->removeEvent($event);
}
}
@@ -27,124 +27,75 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Services;
namespace Espo\Classes\RecordHooks\Webhook;
use Espo\Entities\Webhook as WebhookEntity;
use Espo\ORM\Entity;
use Espo\Core\Acl;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Di;
use Espo\Core\Record\Hook\SaveHook;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\Entities\User;
use stdClass;
use Espo\Entities\Webhook;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
/**
* @extends Record<WebhookEntity>
* @implements SaveHook<Webhook>
*/
class Webhook extends Record implements
Di\WebhookManagerAware
class BeforeSave implements SaveHook
{
use Di\WebhookManagerSetter;
private const WEBHOOK_MAX_COUNT_PER_USER = 50;
const WEBHOOK_MAX_COUNT_PER_USER = 50;
/**
* @var string[]
*/
protected $eventTypeList = [
/** @var string[] */
private $eventTypeList = [
'create',
'update',
'delete',
'fieldUpdate',
];
/**
* @var string[]
*/
protected $onlyAdminAttributeList = ['userId', 'userName'];
public function __construct(
private User $user,
private EntityManager $entityManager,
private Acl $acl,
private Metadata $metadata,
private Config $config
) {}
/**
* @var string[]
*/
protected $readOnlyAttributeList = ['secretKey'];
public function populateDefaults(Entity $entity, stdClass $data): void
{
parent::populateDefaults($entity, $data);
if ($this->user->isApi()) {
$entity->set('userId', $this->user->getId());
}
}
protected function filterInput($data)
{
parent::filterInput($data);
unset($data->entityType);
unset($data->field);
unset($data->type);
}
public function filterUpdateInput(stdClass $data): void
{
if (!$this->user->isAdmin()) {
unset($data->event);
}
parent::filterUpdateInput($data);
}
protected function beforeCreateEntity(Entity $entity, $data)
public function process(Entity $entity): void
{
$this->checkEntityUserIsApi($entity);
$this->processEntityEventData($entity);
if (!$this->user->isAdmin()) {
if ($entity->isNew() && !$this->user->isAdmin()) {
$this->checkMaxCount();
}
}
protected function checkMaxCount(): void
/**
* @throws Forbidden
*/
private function checkEntityUserIsApi(Webhook $entity): void
{
$maxCount = $this->config->get('webhookMaxCountPerUser', self::WEBHOOK_MAX_COUNT_PER_USER);
$count = $this->entityManager
->getRDBRepository(WebhookEntity::ENTITY_TYPE)
->where([
'userId' => $this->user->getId(),
])
->count();
if ($maxCount && $count >= $maxCount) {
throw new Forbidden("Webhook number per user exceeded the limit.");
}
}
protected function beforeUpdateEntity(Entity $entity, $data)
{
$this->checkEntityUserIsApi($entity);
$this->processEntityEventData($entity);
}
protected function checkEntityUserIsApi(Entity $entity): void
{
$userId = $entity->get('userId');
$userId = $entity->getUserId();
if (!$userId) {
return;
}
/** @var User|null $user */
$user = $this->entityManager->getEntity(User::ENTITY_TYPE, $userId);
$user = $this->entityManager->getRDBRepositoryByClass(User::class)->getById($userId);
if (!$user || !$user->isApi()) {
throw new Forbidden("User must be an API User.");
if ($user && $user->isApi()) {
return;
}
throw new Forbidden("User must be an API User.");
}
protected function processEntityEventData(Entity $entity): void
/**
* @throws Forbidden
*/
private function processEntityEventData(Webhook $entity): void
{
$event = $entity->get('event');
@@ -152,10 +103,8 @@ class Webhook extends Record implements
throw new Forbidden("Event is empty.");
}
if (!$entity->isNew()) {
if ($entity->isAttributeChanged('event')) {
throw new Forbidden("Event can't be changed.");
}
if (!$entity->isNew() && $entity->isAttributeChanged('event')) {
throw new Forbidden("Event can't be changed.");
}
$arr = explode('.', $event);
@@ -164,7 +113,6 @@ class Webhook extends Record implements
throw new Forbidden("Not supported event.");
}
$arr = explode('.', $event);
$entityType = $arr[0];
$type = $arr[1];
@@ -185,7 +133,7 @@ class Webhook extends Record implements
throw new Forbidden("Not existing Entity Type.");
}
if (!$this->acl->checkScope($entityType, 'read')) {
if (!$this->acl->checkScope($entityType, Acl\Table::ACTION_READ)) {
throw new Forbidden("Entity type is forbidden.");
}
@@ -204,43 +152,35 @@ class Webhook extends Record implements
throw new Forbidden("Field is empty.");
}
$forbiddenFieldList = $this->getAcl()->getScopeForbiddenFieldList($entityType);
if (in_array($field, $forbiddenFieldList)) {
if (!$this->acl->checkField($entityType, $field)) {
throw new Forbidden("Field is forbidden.");
}
if (!$this->metadata->get(['entityDefs', $entityType, 'fields', $field])) {
throw new Forbidden("Field does not exist.");
}
} else {
$entity->set('field', null);
return;
}
/** @noinspection PhpRedundantOptionalArgumentInspection */
$entity->set('field', null);
}
protected function afterCreateEntity(Entity $entity, $data)
/**
* @throws Forbidden
*/
private function checkMaxCount(): void
{
if ($entity->get('isActive')) {
$this->webhookManager->addEvent($entity->get('event'));
}
}
$maxCount = $this->config->get('webhookMaxCountPerUser', self::WEBHOOK_MAX_COUNT_PER_USER);
protected function afterDeleteEntity(Entity $entity)
{
if ($entity->get('isActive')) {
$this->webhookManager->removeEvent($entity->get('event'));
}
}
$count = $this->entityManager
->getRDBRepositoryByClass(Webhook::class)
->where(['userId' => $this->user->getId()])
->count();
protected function afterUpdateEntity(Entity $entity, $data)
{
if (isset($data->isActive)) {
if ($entity->get('isActive')) {
$this->webhookManager->addEvent($entity->get('event'));
}
else {
$this->webhookManager->removeEvent($entity->get('event'));
}
if ($maxCount && $count >= $maxCount) {
throw new Forbidden("Webhook number per user exceeded the limit.");
}
}
}
@@ -0,0 +1,45 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Select\AddressCountry;
use Espo\Core\Select\Order\Item;
use Espo\Core\Select\Order\Orderer;
use Espo\ORM\Query\Part\Order;
use Espo\ORM\Query\SelectBuilder;
class PreferredNameOrderer implements Orderer
{
public function apply(SelectBuilder $queryBuilder, Item $item): void
{
$queryBuilder
->order('isPreferred', $item->getOrder() === Order::ASC ? Order::DESC : Order::ASC)
->order('name', $item->getOrder());
}
}
@@ -0,0 +1,49 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2024 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Classes\Select\AppLogRecord\PrimaryFilters;
use Espo\Core\Select\Primary\Filter;
use Espo\ORM\Query\SelectBuilder as QueryBuilder;
use Psr\Log\LogLevel;
class Errors implements Filter
{
public function apply(QueryBuilder $queryBuilder): void
{
$queryBuilder->where([
'level' => [
ucfirst(LogLevel::ERROR),
ucfirst(LogLevel::EMERGENCY),
ucfirst(LogLevel::CRITICAL),
ucfirst(LogLevel::ALERT),
]
]);
}
}
@@ -30,6 +30,8 @@
namespace Espo\Classes\Select\Attachment\PrimaryFilters;
use Espo\Core\Select\Primary\Filter;
use Espo\Entities\Attachment;
use Espo\Entities\Settings;
use Espo\ORM\Query\SelectBuilder;
class Orphan implements Filter
@@ -37,32 +39,35 @@ class Orphan implements Filter
public function apply(SelectBuilder $queryBuilder): void
{
$queryBuilder->where([
'role' => ['Attachment', 'Inline Attachment'],
'role' => [
Attachment::ROLE_ATTACHMENT,
Attachment::ROLE_INLINE_ATTACHMENT,
],
[
'OR' => [
[
'parentId' => null,
'parentType!=' => null,
'relatedType=' => null,
'parentId' => null,
'relatedType' => null,
],
[
'parentType' => null,
'relatedId' => null,
'relatedType!=' => null,
'relatedId' => null,
'parentType' => null,
],
],
],
[
'OR' => [
'relatedType!=' => 'Settings',
'relatedType=' => null,
'relatedType!=' => Settings::ENTITY_TYPE,
'relatedType' => null,
],
],
'attachmentChild.id' => null,
]);
$queryBuilder->leftJoin(
'Attachment',
Attachment::ENTITY_TYPE,
'attachmentChild',
[
'attachmentChild.sourceId:' => 'attachment.id',
@@ -32,6 +32,7 @@ namespace Espo\Classes\Select\Email\AccessControlFilters;
use Espo\Core\Select\AccessControl\Filter;
use Espo\Classes\Select\Email\Helpers\JoinHelper;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Query\SelectBuilder as QueryBuilder;
@@ -46,6 +47,6 @@ class OnlyOwn implements Filter
{
$this->joinHelper->joinEmailUser($queryBuilder, $this->user->getId());
$queryBuilder->where(['emailUser.userId' => $this->user->getId()]);
$queryBuilder->where([Email::ALIAS_INBOX . '.userId' => $this->user->getId()]);
}
}
@@ -52,15 +52,15 @@ class OnlyTeam implements Filter
'entityTeam.entityType' => Email::ENTITY_TYPE,
'entityTeam.deleted' => false,
])
->leftJoin(Email::RELATIONSHIP_EMAIL_USER, 'emailUser', [
'emailUser.emailId:' => 'id',
'emailUser.deleted' => false,
'emailUser.userId' => $this->user->getId(),
->leftJoin(Email::RELATIONSHIP_EMAIL_USER, Email::ALIAS_INBOX, [
Email::ALIAS_INBOX . '.emailId:' => 'id',
Email::ALIAS_INBOX . '.deleted' => false,
Email::ALIAS_INBOX . '.userId' => $this->user->getId(),
])
->where([
'OR' => [
'entityTeam.teamId' => $this->user->getTeamIdList(),
'emailUser.userId' => $this->user->getId(),
Email::ALIAS_INBOX . '.userId' => $this->user->getId(),
]
])
->build();
@@ -31,6 +31,7 @@ namespace Espo\Classes\Select\Email\AccessControlFilters;
use Espo\Core\Select\AccessControl\Filter;
use Espo\Classes\Select\Email\Helpers\JoinHelper;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Query\SelectBuilder as QueryBuilder;
@@ -46,10 +47,9 @@ class PortalOnlyAccount implements Filter
$queryBuilder->distinct();
$orGroup = [
'emailUser.userId' => $this->user->getId(),
Email::ALIAS_INBOX . '.userId' => $this->user->getId(),
];
/** @var string[] $accountIdList */
$accountIdList = $this->user->getLinkMultipleIdList('accounts');
if (count($accountIdList)) {
@@ -31,6 +31,7 @@ namespace Espo\Classes\Select\Email\AccessControlFilters;
use Espo\Core\Select\AccessControl\Filter;
use Espo\Classes\Select\Email\Helpers\JoinHelper;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Query\SelectBuilder as QueryBuilder;
@@ -46,7 +47,7 @@ class PortalOnlyContact implements Filter
$queryBuilder->distinct();
$orGroup = [
'emailUser.userId' => $this->user->getId(),
Email::ALIAS_INBOX . '.userId' => $this->user->getId(),
];
$contactId = $this->user->get('contactId');
@@ -76,9 +76,9 @@ class Main implements AdditionalApplier
return;
}
if ($this->checkApplyDateSentIndex($queryBuilder, $searchParams)) {
/*if ($this->checkApplyDateSentIndex($queryBuilder, $searchParams)) {
$queryBuilder->useIndex('dateSent');
}
}*/
}
private function joinEmailUser(SelectBuilder $queryBuilder): void
@@ -93,11 +93,12 @@ class Main implements AdditionalApplier
Email::USERS_COLUMN_IS_READ,
Email::USERS_COLUMN_IS_IMPORTANT,
Email::USERS_COLUMN_IN_TRASH,
Email::USERS_COLUMN_IN_ARCHIVE,
Email::USERS_COLUMN_FOLDER_ID,
];
foreach ($itemList as $item) {
$queryBuilder->select('emailUser.' . $item, $item);
$queryBuilder->select(Email::ALIAS_INBOX . '.' . $item, $item);
}
}
@@ -116,7 +117,7 @@ class Main implements AdditionalApplier
return null;
}
private function checkApplyDateSentIndex(SelectBuilder $queryBuilder, SearchParams $searchParams): bool
/*private function checkApplyDateSentIndex(SelectBuilder $queryBuilder, SearchParams $searchParams): bool
{
if ($searchParams->getTextFilter()) {
return false;
@@ -149,5 +150,5 @@ class Main implements AdditionalApplier
}
return true;
}
}*/
}
@@ -31,6 +31,7 @@ namespace Espo\Classes\Select\Email\BoolFilters;
use Espo\Classes\Select\Email\Helpers\JoinHelper;
use Espo\Core\Select\Bool\Filter;
use Espo\Entities\Email;
use Espo\Entities\User;
use Espo\ORM\Query\Part\Where\OrGroupBuilder;
use Espo\ORM\Query\Part\WhereClause;
@@ -46,7 +47,7 @@ class OnlyMy implements Filter
$this->joinHelper->joinEmailUser($queryBuilder, $this->user->getId());
$item = WhereClause::fromRaw([
'emailUser.userId' => $this->user->getId(),
Email::ALIAS_INBOX . '.userId' => $this->user->getId(),
]);
$orGroupBuilder->add($item);
@@ -36,14 +36,14 @@ class JoinHelper
{
public function joinEmailUser(QueryBuilder $queryBuilder, string $userId): void
{
if ($queryBuilder->hasLeftJoinAlias('emailUser')) {
if ($queryBuilder->hasLeftJoinAlias(Email::ALIAS_INBOX)) {
return;
}
$queryBuilder->leftJoin(Email::RELATIONSHIP_EMAIL_USER, 'emailUser', [
'emailUser.emailId:' => 'id',
'emailUser.deleted' => false,
'emailUser.userId' => $userId,
$queryBuilder->leftJoin(Email::RELATIONSHIP_EMAIL_USER, Email::ALIAS_INBOX, [
Email::ALIAS_INBOX . '.emailId:' => 'id',
Email::ALIAS_INBOX . '.deleted' => false,
Email::ALIAS_INBOX . '.userId' => $userId,
]);
}
}

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