1420 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
soupette
4e71345ee6 Fix check API call
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:45 +02:00
Alexandre Bodin
5c6851e6ba Update naming of permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:45 +02:00
Convly
c9ebae4c9f Fix authorization issues due to null subject registration
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
0cf76721e9 Add missing subject on upload permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +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
0e61698ef5 Fix upload w/ permissions bugs
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:43 +02:00
Convly
5f01d9ebe1 Add permissions on upload controller
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
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
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
26713b66eb Fix delete in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:15 +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
df3346fb39 Fix permissions
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:47:23 +02:00
soupette
07d24de334 Fix input media
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:42:29 +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
Pierre Noël
243c4ccc4e add upload permissions to default roles + second refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +02:00
soupette
a7ea1e3200 Temp commit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
9f355043d0 Fix upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
820c0e9ba1 Hide searchbar in upload modal ctm when not allowed to read
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +02:00
Alexandre Bodin
d1c492a0fa Fix unit tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:09:45 +02:00
soupette
044c47e732 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:27 +02:00
soupette
e83e25c298 Fix tests temporarily
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:27 +02:00
soupette
014d5e6f83 Add permissions to webhooks
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:26 +02:00
soupette
2e56b8c9a9 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:26 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +02:00
soupette
a4d99ba742 Add permissions to settings menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:47 +02:00
soupette
ff48998648 Move useUserPermissions hook
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:12 +02:00
soupette
2fd80d7de4 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:12 +02:00
soupette
467d77cbaa Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
5665227e28 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
99dac93f27 Add permissions to inputmedia
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
012941f9ad Add permissions to ML
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:11 +02:00
soupette
170b8a7d18 Revet work
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
9c83713953 Temp commit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
e8ee11f354 Created hook to check available permissions and secure ml main compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
dd66abe69b Init permissions in ml
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
soupette
6a298fc991 Rename permissions components
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:10 +02:00
Pierre Noël
0ff2048ea9 add action plugins::application.settings.read
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
soupette
3c8c15efca Add permissions check to plugins main components except the ctm
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +02:00
soupette
7f4bb2a5bc Update plugin object
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
904eb3ab7a Update settings api and documentation
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:26 +02:00
soupette
acb43e5aa9 Update settings api to add the permissions check
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:26 +02:00
soupette
b68245b8b1 Add permissions to plugins links in the menu only
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:25 +02:00
soupette
2577eeedd3 Created MagicLink component
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:09 +02:00
soupette
3e33790125 Created ModalHeader component in helper and use it in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:37 +02:00