151 Commits

Author SHA1 Message Date
Alexandre Bodin
109e41ea1f Fix e2e tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 13:53:56 +02:00
Convly
e63306b559 Rewrote users-permissions's controller to fit with rbac, fix various bugs in content-manager's controllers
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Alexandre Bodin
1c90614f8b Fix sanitizeEntity
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:44 +02:00
Convly
647b5a2b6e Remove useless check
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
097c7f4477 Add sanitize
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
8109af101c Handle specific find case of ST
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
cdc9bc2167 Allow multiple args in policies
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
1b460c76ff Fix find relation list for compo
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
3ff5f645c8 Add single type usecase and fix delete
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
44a7e2321d Update findOne
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
c31c86c8e5 Allow compo option
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Alexandre Bodin
29fcf7c3cd Clean find relation list and tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +02:00
Convly
56d583e49e Add basis for upload controllers permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Alexandre Bodin
e8063ceb28 Add relation-list route in the CM
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:41 +02:00
Convly
20f80b2361 Better permissions-manager.sanitize behavior
Forbid empty arrays as fields for permissions (on ability creation)
Differentiate input from output sanitizing

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:38 +02:00
Convly
f2eb3c5726 Use AbilityBuilder instead of defineAbility, fix content-manager::create route
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:18 +02:00
Convly
c11e6dfa88 Use AbilityBuilder instead of defineAbility, fix content-manager::create route
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
25c04c8d78 Fix actions name typo
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
b5fb5f8509 Add permissions to the content-manager routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Alexandre Bodin
4edad86029 Add basic created_by updated_by
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:16 +02:00
Alexandre Bodin
7c8d51d15d fix 204 issues and use strapi.db.getModelByAssoc
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:38 +02:00
HichamELBSI
829bf7c390 Custom timestamps
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-04-01 16:15:57 +02:00
Alexandre Bodin
6f2103a402 Init sender and middleware, ping
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 14:50:19 +02:00
Pierre Noël
b5ec9cb1c8 handle unexpected params from koa-router
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>

Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-06 19:16:51 +01:00
Alexandre Bodin
01cda58cee Fix validation on update not allowing nulls
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-03 16:12:19 +01:00
Alexandre Bodin
c1ac8b0106 Add apiId to get content type
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-20 11:44:35 +01:00
Alexandre Bodin
3cb66f6566 Update snapshots
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-19 12:16:59 +01:00
Alexandre Bodin
db03d9d07d Add UID validation routes for CTM livechecks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-19 10:54:44 +01:00
Alexandre Bodin
0a1d7c77db Add tests for CORE api single-types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:36 +01:00
HichamELBSI
f534ec32a9 Update list item limitation
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-02-07 14:48:32 +01:00
Alexandre Bodin
cd4f873be6 Add testing
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-21 12:32:37 +01:00
Alexandre Bodin
90408d5119 content-manager: list content types on kind
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-21 11:46:38 +01:00
Alexandre Bodin
f28292b384 Merge branch 'develop' into features/webhooks 2020-01-09 11:09:26 +01:00
Alexandre Bodin
7c94a2316d Init strapi.service and use it where services where required 2020-01-08 17:57:53 +01:00
Alexandre Bodin
fb25e33383 Create an entity service to share between core service and content manager 2020-01-08 11:13:38 +01:00
Alexandre Bodin
780c35a14a Add category info in content-manager 2019-12-11 12:19:48 +01:00
Alexandre Bodin
f5a9494cb8 Remove certain content types from ctm list 2019-12-06 16:18:35 +01:00
Alexandre Bodin
3e8816161a Handle uids in ctm explorer routes 2019-11-15 11:49:32 +01:00
Alexandre Bodin
49e270a7f6 Support uid for content types 2019-11-15 09:50:58 +01:00
Alexandre Bodin
50ab4c88b9 Use full UIDs in CTM 2019-11-14 16:41:47 +01:00
Alexandre Bodin
2ee39bc9d8 Add components and nested components directly with the content types and compos schemas 2019-11-13 18:49:04 +01:00
Alexandre Bodin
b9122edf0d Rename groups to components 2019-11-13 18:49:02 +01:00
Alexandre Bodin
4ee0160e6c Remove general settings 2019-11-13 18:49:01 +01:00
Alexandre BODIN
c66eb5d2cf
Merge branch 'master' into chore/routing-x-forwarded 2019-09-13 17:40:50 +02:00
Alexandre Bodin
ae6492dab2 Allow group mainField and defaultSortBy to be id 2019-09-13 10:36:48 +02:00
Alexandre Bodin
a22f2cefef Remove x-forwarded-host.
- set security defaults for development mode that are standard
- refactor error messages to work without ctx.request.admin
- remove mask middleware and add a sanitization layer to the core-api to
hide private fileds
2019-09-06 14:33:24 +02:00
Alexandre Bodin
0c078d0d2b Validate custom model configs during content manager boostrap 2019-08-06 13:49:25 +02:00
Alexandre Bodin
64dfa88cfc Clean extra files 2019-08-05 15:36:38 +02:00
Alexandre Bodin
ca37b779b3 Fix content manager invalid arguments passed 2019-08-02 09:08:58 +02:00
Alexandre Bodin
3e174ddf3a Support file upload via multipart/form-data in generated apis 2019-08-02 09:08:57 +02:00