14807 Commits

Author SHA1 Message Date
Convly
765d7aaa52 Add check many permissions route/controller / Add userAbility to the context's state / Add isAuthenticatedAdmin.js
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:50 +02:00
Convly
bfb782069e Update permission-engine tests 2020-07-08 11:05:50 +02:00
Convly
efe6323eb3 Add checkMany & rework evaluatePermission (permission-engine) 2020-07-08 11:05:50 +02:00
Convly
f0b5f6a849 Add tests for the conditions provider & permissions engine 2020-07-08 11:05:49 +02:00
Convly
ef94229d81 Add Condition Provider & Permissions Engine 2020-07-08 11:05:49 +02:00
Convly
44a24cd473 Add Casl to strapi-admin 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
d160de2702 Fix export
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:13 +02:00
Alexandre Bodin
75f272e913 Add EE pack script
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:05:12 +02:00
Alexandre Bodin
4d9e5f2769 Add packing script
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:05:12 +02:00
soupette
3b11179c1c Delete files
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:12 +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
9cb4e76830 Fix 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
soupette
ae13a18bd8 Fix section display
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
2339c6b8f7 fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
3aec039698 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
22fb227b96 remove cloning in action-provider
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
91a7f1a6cb remove use of conditions inside actions
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
9a717fe672 rename createActionProvider
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +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
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
86eccf9e66 add js doc
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +02:00
Pierre Noël
7e1a91dda6 add use strict
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
d8a4490cbf adapt updatePermissions for EE/CE
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:07 +02:00
Pierre Noël
0330aba229 clean permissions in db at startup
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
Pierre Noël
5fffffa72d add permission registry provider
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:06 +02:00
soupette
f5e8f470ae Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:06 +02:00
soupette
bcb18f117f Update doc
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:06 +02:00
soupette
50c16dee16 Move plugins trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:05 +02:00
soupette
fa3315a118 Improve code
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:05 +02:00
soupette
4ce714c32f Add permissions to doc plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:05 +02:00
soupette
6e6c8c05cb Add permissions to ctm injected components
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:05 +02:00
soupette
67c8cbd1d7 Add permissions on the configure button in the ctm
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +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
2e314756cf Add permissions to doc main compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +02:00
soupette
7d9041ecc3 Add permissions to ctb main compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +02:00