295 Commits

Author SHA1 Message Date
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
Alexandre Bodin
e9ae95292e Update all models on general settings changes 2019-07-23 11:21:15 +02:00
Alexandre Bodin
6fbacc629d Add new missing attributes on server start 2019-07-23 11:21:14 +02:00
Alexandre Bodin
28bdf0ce27 Update settings, metadatas and layouts for groups and content-types on restart 2019-07-23 11:21:14 +02:00
Alexandre Bodin
87d59bad05 Init content-manager new bootstrap schema cleanup algorithm 2019-07-23 11:21:14 +02:00
Alexandre Bodin
47d6e8d73a Move general settings to specific controllers and services 2019-07-23 11:21:13 +02:00
Alexandre Bodin
e6a6c3ee02 Save a model configuration in one key only 2019-07-23 11:21:13 +02:00
Alexandre Bodin
e7f384afc7 Init new content-manager-schema management 2019-07-23 11:21:12 +02:00
Alexandre Bodin
a74336d604 Init new content manager core schemas 2019-07-23 11:21:11 +02:00
Alexandre Bodin
c020f0a6cd mongoose working version 2019-07-17 00:03:38 +02:00
Alexandre Bodin
09dcea27f1 refactor mongoose queries to match api 2019-07-16 21:24:09 +02:00
Alexandre Bodin
56c59c5ae1 Implement deleteMany in query.delete 2019-07-16 20:11:34 +02:00
soupette
00cea393eb Handle submit for settingviewmodel 2019-07-05 11:01:53 +02:00
soupette
de9ee49878 Init SettigViewModel 2019-07-05 09:41:14 +02:00