14134 Commits

Author SHA1 Message Date
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
soupette
c91ebf6dab Fix Pr feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:19 +02:00
soupette
9a68e2b3e1 init fake users permissions data
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:19 +02:00
soupette
d2f6ef550c Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:04:19 +02:00
HichamELBSI
cbba497f42 Fix PR review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:04:18 +02:00
HichamELBSI
b786f9b43d Init content type permissions list
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:04:16 +02:00
soupette
57e21e1a04 Change button color
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:00:28 +02:00
soupette
fa7d906494 Fix batch-delete
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:00:28 +02:00
soupette
ca5f97aa5d Fix trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:00:26 +02:00
soupette
af981d6bb3 Add empty role compo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:00:00 +02:00
soupette
6676c1878e Upgrade buffet
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:41 +02:00
soupette
be5da0c871 Fix import
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:41 +02:00
soupette
250d356688 Clean logout
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:40 +02:00
soupette
0c5c3d9dc7 Clean leftmenu
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:40 +02:00
soupette
c8e3e624d2 Fix list
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:40 +02:00
soupette
ce4710b297 Fix lists
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:40 +02:00
soupette
e941ab8fae Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:39 +02:00
soupette
664be7d2db Translate user msg
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:39 +02:00
soupette
aa3b7077cd Add search
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:39 +02:00
soupette
da801e95fb Add delete role logic
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:39 +02:00
soupette
16eb1df70b Connect to roles api when creating a user
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:59:39 +02:00
HichamELBSI
be2ef30ab8 Fix PR feedback
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 10:59:38 +02:00
HichamELBSI
670b413934 Edit a role without API Call
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 10:59:38 +02:00
Alexandre Bodin
7c8d51d15d fix 204 issues and use strapi.db.getModelByAssoc
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:38 +02:00
Alexandre Bodin
ba8509eac8 Apply PR feedbacks
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:38 +02:00
Alexandre Bodin
02435ae8a3 fix unit tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:38 +02:00
Alexandre Bodin
d1e2350a2e Fix tests after merge
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:37 +02:00
Alexandre Bodin
7346b983c5 Add domain model for permission
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:37 +02:00
Alexandre Bodin
c6e08dcb57 Add assign permission
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:37 +02:00
Alexandre Bodin
ff0b5a13a4 Init permissions routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:59:37 +02:00
Pierre Noël
9cfc34e19f rename findOneWithUsersCount
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:37 +02:00
Pierre Noël
77eec454ff getUsersCountsFor -> getUserCount
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:37 +02:00
Pierre Noël
291779aa45 move count to role services
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:36 +02:00
Pierre Noël
7f0bb01a07 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:36 +02:00
Pierre Noël
aeb384827b remove use of role.users in front 2020-07-08 10:59:36 +02:00
Pierre Noël
1746314930 fix tests for mongo
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:36 +02:00
Pierre Noël
970a470034 add tests + make role decription optional + refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:34 +02:00
Pierre Noël
86882a4aaa refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:58:08 +02:00