308 Commits

Author SHA1 Message Date
Alexandre Bodin
69e10731a0 Add find content types settings routes 2021-03-15 20:44:06 +01:00
Pierre Noël
387ded4a99
Fix relation search (#9156)
* add params to relation route to omit existing relations

* small refacto

* use omit approach

* Fix relation select (Front)

Signed-off-by: HichamELBSI <elabbassih@gmail.com>

* Fix relation select review

Signed-off-by: HichamELBSI <elabbassih@gmail.com>

* update doc aos + remove useless cast to string

Co-authored-by: HichamELBSI <elabbassih@gmail.com>
2021-01-25 17:58:18 +01:00
Pierre Noël
0d9812db95 add many relations preview route 2020-12-02 15:48:00 +01:00
Alexandre Bodin
02c7d97ffc Remove multipart
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-03 10:00:50 +01:00
Alexandre Bodin
0db015e6c2 Update tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:45 +01:00
Alexandre Bodin
bfa6766475 init coll-type
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:45 +01:00
Alexandre Bodin
2bbd47ba2c Single type routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
7509a16152 Refactor relation-list route
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
b37a92c60f Refactored uid utils
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:44 +01:00
Alexandre Bodin
cdefc1d2de Update open api script
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:43 +01:00
Alexandre Bodin
07e7cfc0bd Make lint stricter and fix the errors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Alexandre Bodin
8ecc36cfa3 Init refactoring of content manager configuration routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Alexandre Bodin
b325fd0572 Move content type schemas routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:41 +01:00
Convly
36668fa173 Add ability to unpublish a content
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:23 +02:00
Jean-Sébastien Herbaux
ca963a6f90 [D&P] Publish a draft (#7532)
* Add publish a draft capability.

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:19 +02:00
Convly
72aaa16d3d Rename fieldsGranularity to fieldsRestriction, various bug fixes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:14 +02:00
Convly
310a0d16f3 Add Publish permission & action
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:14 +02:00
Convly
8797d25501 Add hasPermissions policy to concerned routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +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
c31c86c8e5 Allow compo option
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
8f7da9674c Add plugins::content-manager.hasPermissions policy
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
Pierre Noël
6ab7669365 rename plugins::content-manager.create to plugins::content-manager.explorer.create and others
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:51 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +02:00
Pierre Noël
42e3b64689 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +02:00
Pierre Noël
bbb1353927 remove hidden contentTypes from permission actions list + fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
e078c0b022 rename permissions to actions, inverted params of provider.get, separated formatter, add possibility to not specigy pluginName for ::application
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
707746ef45 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
Pierre Noël
ae0dcb9745 add route GET /admin/permissions
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02: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
6804bd34b4 Fix not found content type in content manager routes 2019-11-26 17:18:43 +01:00
Alexandre Bodin
605fcdd530 Fix ctm update settings policy 2019-11-20 17:29:39 +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
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
7c5f1484ba Use koa-router and fix graphql-uploads 2019-08-22 15:04:27 +02:00
Alexandre Bodin
3b47457f4f make boostrap functions async only 2019-08-12 15:35:40 +02:00
Alexandre Bodin
e4c7a699fb Add image upload in routing policy of the content manager 2019-08-05 10:31:18 +02:00
Alexandre Bodin
fb41211d00 Remove content manager upload route 2019-08-01 12:20:27 +02:00
Alexandre Bodin
c5e50665cd Add upload route in content-manager and remove formdata for data creation 2019-07-30 16:58:36 +02:00
Alexandre Bodin
3fdc149767 Fix count route order 2019-07-23 13:08:43 +02:00
Alexandre Bodin
5f36278ec1 Clean up content manager configuration code and init tests 2019-07-23 11:21:17 +02:00
Alexandre Bodin
1e37ff5b47 Handle updating list sortable flag 2019-07-23 11:21:17 +02:00
Alexandre Bodin
85762551aa Cleanup old code 2019-07-23 11:21:15 +02:00