14134 Commits

Author SHA1 Message Date
Convly
9fd6638634 Rework domain/condition
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:09:45 +02:00
Convly
ed6a68d9be Add category to conditions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:09:45 +02:00
Convly
e745903112 Fix pr comments
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:09:44 +02:00
Convly
9f1fa33e29 Add conditions list to permissions/getAll / Add Default Conditions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:09:44 +02:00
soupette
663138a058 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:44 +02:00
soupette
96bd475c5a Hide search when not allowed to read
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:44 +02:00
soupette
1a23abf405 Fix unlockApp in ctb
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:44 +02:00
soupette
0689894571 Refacto code
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:43 +02:00
soupette
b64af2c309 Change adminReducer to immer
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:42 +02:00
soupette
8b02624b6b Improve requests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:28 +02:00
soupette
9bdad07af6 enable views
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:27 +02:00
HichamELBSI
d8f667456e Permissions list collapse path
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:07:27 +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
db0ff1de4f Add permissions to users
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
70a6a399dc Add permissions to marketplace pages
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:26 +02:00
soupette
aad4c3df65 Create permissions.js file for admin package
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:26 +02:00
soupette
b9865277ba Add comments
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
soupette
7c8140491d Add permissions to edit page
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:25 +02:00
soupette
51722ca3a1 Add permissions to homepage
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:07:23 +02:00
Convly
d674b1f7e6 Add policies on getAll (permissions) route
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:51 +02:00
Convly
027848eaa7 Fix pr comments (add doc, simplify engine code, add async test condition)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:51 +02:00
Convly
a0b4132217 Merge engine.findPermissionsForUser with service.findUserPermissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:51 +02:00
Convly
d15cd823a3 Fix tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:51 +02:00
Convly
27c2ff9c0a Add /admin/users/me/permissions route (+ findUserPermissions & sanitizePermission)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:05:50 +02:00
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