15371 Commits

Author SHA1 Message Date
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
soupette
e73101b664 Update doc
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:05:04 +02:00
HichamELBSI
28653214f0 Update after PR review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:05:03 +02:00
HichamELBSI
3d4a43545e Content type attributes permissions integration
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:05:02 +02:00
soupette
3f3f36a576 Improve settings menu and left menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:28 +02:00
soupette
6889940033 Fix messages
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
316bff5afb Delete useless compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
e780d4e410 Add models permissions check
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
7f4bb2a5bc Update plugin object
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
d3d8e678dc Update ctm
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:27 +02:00
soupette
2790068e36 Update menu to display the models
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:26 +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
HichamELBSI
00e6b008e7 Fix edit a role
Signed-off-by: HichamELBSI <elabbassih@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
d282c7d5d6 Update upload permissions
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:25 +02:00
soupette
628973a6f0 Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:25 +02:00
soupette
65ff67ac53 Add loading state
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:25 +02:00
soupette
372951327d Init permissions check for the general links
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:24 +02:00
soupette
30d8d08cc4 Move the general section in its own
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:24 +02:00
soupette
92c3d2ee1f fix batch delete roles
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:24 +02:00
soupette
38d0939aa5 Fix modal confirm and upgrade buffet
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:24 +02:00
soupette
0eaa9e9e4b Add loading state to roles view
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:23 +02:00
soupette
90b5912bb5 Add loading button to users and roles listpage
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:23 +02:00
HichamELBSI
441b9f067f Fix PR review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:04:23 +02:00
HichamELBSI
5ad41b3a32 Submit update role action
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:04:23 +02:00
Convly
248546581f Accept ids equal to 0 as StrapiID 2020-07-08 11:04:22 +02:00
Convly
c398b969a4 Add unique email check on update user 2020-07-08 11:04:22 +02:00
Convly
598e9b9d93 Fix user controller tests 2020-07-08 11:04:22 +02:00
Convly
d69101427f Fix PR: Refactor user e2e tests, fix domain logic, add user::deleteOne route 2020-07-08 11:04:22 +02:00
Convly
a6c2fab79c Add tests for user controller/service/api
Fix e2e tests, add default role to match .min(1) condition
2020-07-08 11:04:21 +02:00
Convly
65f0e7e3f3 Use custom type for strapiID & move it to strapi-utils 2020-07-08 11:04:21 +02:00
Convly
483457cafd Add GET /admin/users/:id route 2020-07-08 11:04:21 +02:00
Convly
ede7fd0b90 Add custom strapiID type to yup 2020-07-08 11:04:20 +02:00
Convly
ce44b330ad Extract sanitizeUserRoles to outer scope, fix typo 2020-07-08 11:04:20 +02:00
Convly
ba4d6d85e5 Fix strapi-admin/services/user tests 2020-07-08 11:04:20 +02:00
Convly
6897cbf6ad Add update user route in the user api 2020-07-08 11:04:20 +02:00