2392 Commits

Author SHA1 Message Date
soupette
aaab4c17f5 Fix WYSIWYG and JSON inputs disabled state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:46 +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
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
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
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
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
soupette
5da5870218 Fix readonly state components design
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:46 +02:00
soupette
b7686d0191 Fix validations for users
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:46 +02:00
soupette
842f78d5fe Only display allowed filters
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:45 +02:00
soupette
3a94a1733f Fix dz read mode
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:45 +02:00
soupette
7279f130d6 Fix dz and nested components
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:43 +02:00
soupette
0fd8100a47 Fix redirection
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:24 +02:00
soupette
a1163f2bdc Fix updates when unmounted
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:23 +02:00
soupette
ebc87046f6 Connect to the backend
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:23 +02:00
soupette
453a38905f Update Relation API endpoint
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:23 +02:00
soupette
49962d6ca1 Handle API errors
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:46:32 +02:00
soupette
970273a9b9 Fix validations
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:46:32 +02:00
soupette
7e4d7b1d1c Fix validations
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:46:32 +02:00
soupette
f86a3c3b9e Fix CM loading state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:46:32 +02:00
soupette
51756426a8 Fix NotAllowedInput trad
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:42:52 +02:00
soupette
af69b04238 Fix single types and input media
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:42:28 +02:00
soupette
ddb37266ae Add permissions to edit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:42:28 +02:00
soupette
577471142d Add permissions for update
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:42:28 +02:00
soupette
0f91108d10 Fix header
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:38:20 +02:00
soupette
2d4eb1d0ca Clean code
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:38:20 +02:00
soupette
8b7aecd481 Fix dynamiczones
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:38:18 +02:00
soupette
b8a979f276 Add permissions for create action only for collectionTypes
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:37:48 +02:00
soupette
f2c9716156 Fix dynamiczones
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:37:47 +02:00
soupette
fde9b99a44 Add permissions to Inputs level
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:37:47 +02:00
soupette
ec80117a49 Add permissions for creating to simple ct
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:37:45 +02:00
soupette
d5332d4a51 Temp commit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:37:00 +02:00
soupette
fc64f20632 Created NotAllowedInput
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:36:59 +02:00
soupette
278f93807f Fix permissions for CM
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:36:59 +02:00
soupette
b8428bc4b0 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:36:58 +02:00