157 Commits

Author SHA1 Message Date
ivanThePleasant
15e2b96fc6 Improved logic for tests to pass 2022-03-30 11:54:06 +03:00
ivanThePleasant
675c19219b Reverted admin telemetry changes and rewrote it for an easier approach 2022-03-30 10:25:18 +03:00
ivanThePleasant
6e08bc2045 Revert "Added telemetry disable logic to the admin panel events"
This reverts commit c6307ece6357737a5c7afdc60169672b6122c617.
2022-03-30 10:19:28 +03:00
ivanThePleasant
ab69f2bde1 Adjusted admin tests to reflect changes with telemetry 2022-03-29 20:18:13 +03:00
ivanThePleasant
c6307ece63 Added telemetry disable logic to the admin panel events 2022-03-29 16:49:29 +03:00
Mark Kaylor
a58c2bc035 Merge branch 'master' of github.com:strapi/strapi into strapi-market-release 2022-03-11 11:08:17 +01:00
Sacha STAFYNIAK
7396752575 fix: serve all admin dist file with public cache except html files 2022-03-10 15:14:09 +01:00
Sacha STAFYNIAK
970f1d2b5d fix: serve admin static file with public cache 2022-03-05 16:30:06 +01:00
Rémi de Juvigny
1d544d9841 Fix tests 2022-02-22 14:54:44 +01:00
Rémi de Juvigny
f7fd8bcebf Refactor to fetch data using hooks 2022-02-21 16:38:15 +01:00
Rémi de Juvigny
ab18a34b7a Fetch useYarn info 2022-02-18 20:15:46 +01:00
Rémi de Juvigny
9130c8304c Refactor check if plugin is installed 2022-02-18 18:53:03 +01:00
Demian Caldelas
69ce8b5287
Fix sanity check for @casl/ability upgrade #12232 (#12265)
* Fix sanity checks for @casl/ability upgrade

* Add comments for previous commit

* Fix sanity checks for @casl/ability upgrade #12232
2022-01-26 09:55:17 +01:00
Pierre Noël
da9b064536 add session middleware + remove authentication using url param access_token 2022-01-19 17:10:41 +01:00
Alexandre BODIN
cc9a1b7e01
Merge pull request #11983 from tillschweneker/fix-env_path-variable
[FIX] respect custom ENV_PATH
2022-01-19 10:25:12 +01:00
Vincent
b606178332
Interface language usage metrics (#12107)
* feat: sending didChangeInterfaceLanguage event

* fix: registered user model lifecycle hook to send  event

* test: added tests for user and metrics services

* fix: sending event on user delete

* fix: avoid sending event when language is not updated
2022-01-17 17:45:26 +01:00
harimkims
31259dbf4a Remove unnecessary bracket in the end 2022-01-17 14:13:33 +01:00
Kim, Harim
9e8655716d Refactor code
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2022-01-17 14:13:33 +01:00
harimkims
de69873606 Fix that returns an empty object when the admin user value is null
Signed-off-by: harimkims <harimkims@gmail.com>
2022-01-17 14:13:33 +01:00
harimkims
2ff2ba860e Fix hasMany admin users making app crash
Signed-off-by: harimkims <harimkims@gmail.com>
2022-01-17 14:13:33 +01:00
Jean-Sébastien Herbaux
ce09d38972
Enable to create/trigger webhooks with no events (#12174)
Co-authored-by: cyril lopez <cyril@strapi.io>
2022-01-12 16:26:06 +01:00
tillschweneker
ac0c306a0b [FIX] respect custom ENV_PATH when setting API_TOKEN_SALT 2021-12-22 10:08:47 +01:00
harimkims
a926999b29 Fix relations are not populated if API key is read-only
Signed-off-by: harimkims <harimkims@gmail.com>
2021-12-21 22:37:43 +09:00
Alexandre Bodin
21728d60ac Cleanup 2021-11-30 09:03:52 +01:00
Alexandre Bodin
b82f0a3d01 Build admin only when necessary and serve it from the admin package 2021-11-29 16:20:47 +01:00
Alexandre BODIN
71bdfa3463
Merge pull request #11668 from strapi/v4/remove-sensible-fields-from-admin-user-relations
remove unallowed fields from admin::user relations
2021-11-25 10:51:02 +01:00
Dieter Stinglhamber
ba25b7b651 remove unallowed fields from admin::user relations 2021-11-24 15:15:23 +01:00
Alexandre BODIN
aaef74b58a
Merge pull request #11660 from strapi/v4/fix-sso-query
[V4] Fix sso existing user query
2021-11-23 18:20:00 +01:00
vincentbpro
48b2c38d4e Merge branch 'releases/v4' into v4/make-lastname-optional 2021-11-23 15:47:22 +01:00
Convly
fdefb1382c Use a custom findOneByEmail to search for existing user 2021-11-23 12:16:54 +01:00
Alexandre BODIN
84301a358d
Merge pull request #11612 from strapi/v4/fix-empty-component-permissions
[V4] Fix empty component permissions
2021-11-17 18:11:54 +01:00
Convly
091d360f7b Fix missing permission for empty components in CTs 2021-11-17 16:57:22 +01:00
soupette
5767590ac4 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/plugins-page 2021-11-17 14:43:46 +01:00
vincentbpro
532c8d6959 tests: updated e2e tests 2021-11-16 11:29:57 +01:00
Alexandre BODIN
d3aedca699
Merge pull request #11579 from strapi/v4/allow-access-token-param
Allow access_token query param for auth
2021-11-16 09:34:36 +01:00
Alexandre Bodin
113bea8e7f Support query access_token 2021-11-16 09:25:55 +01:00
Alexandre BODIN
f4facb654b
Merge pull request #11475 from strapi/v4/new-sanitize-fixes
[V4] Enhancements for the new sanitize processes
2021-11-12 14:52:47 +01:00
vincentbpro
6213d2dc7b feat: made lastname fields optional 2021-11-10 18:36:07 +01:00
Convly
25e62db93a use 'sanitizers' instead of 'utils' 2021-11-10 17:08:54 +01:00
Convly
07fef39592 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/up-resolvers-picker-fix 2021-11-09 18:38:20 +01:00
Convly
16ab717fb2 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/new-sanitize-fixes 2021-11-08 15:53:58 +01:00
Convly
8d4f8ddd57 Simplify & abstract common sanitize logic 2021-11-08 15:52:42 +01:00
Alexandre Bodin
42b87679bb Refactor policies to have a consistent factory API like middlewares 2021-11-08 09:33:36 +01:00
Pierre Noël
c6a5a047d6 Merge branch 'releases/v4' into v4/error-handling 2021-11-05 10:40:11 +01:00
Pierre Noël
db1cb3040c refactor error-handling PR 2021-11-05 10:13:43 +01:00
Convly
d6516116b2 Move pipeAsync to @strapi/utils 2021-11-04 16:43:27 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads (#11411)
* Rework sanitizeEntity, first iteration

* remove console.log

* Remove useless comments

* Fix e2e tests

* Fix up user e2e test

* Fix remove-restricted-relations visitor

* Handle grapqhql resolver, prevent access to restricted relations

* Handle polymorphic relation in the related visitor

* Remove morph attribute if empty

* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00
Convly
14d6a5b2c4 Fix users-permissions user controllers permissions 2021-11-04 15:18:09 +01:00
Alexandre Bodin
8a018619ef Add /plugins list api and update description to be plain english for now 2021-11-04 12:01:49 +01:00
Pierre Noël
cb098ec280 clean yup validations 2021-11-04 11:42:45 +01:00