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
|
ef94229d81
|
Add Condition Provider & Permissions Engine
|
2020-07-08 11:05:49 +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
|
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
|
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
|
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 |
|
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
|
ce44b330ad
|
Extract sanitizeUserRoles to outer scope, fix typo
|
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 |
|
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
|
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
|
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 |
|
Alexandre Bodin
|
f7f3843916
|
Add tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:57:20 +02:00 |
|
Alexandre Bodin
|
da35c122b4
|
Add reset password API
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:57:20 +02:00 |
|
Alexandre Bodin
|
88ccc4a111
|
Add forgot-password API
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:57:20 +02:00 |
|
Alexandre Bodin
|
5269db9894
|
fix bug on merge
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:56:50 +02:00 |
|
Alexandre Bodin
|
35d87bfdcd
|
Cleanup
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:53:23 +02:00 |
|
Alexandre Bodin
|
7a056c2f45
|
Add admin registeration API
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:53:19 +02:00 |
|
Pierre Noël
|
abcaa7f831
|
add PUT /admin/roles/:id
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 10:51:46 +02:00 |
|
Alexandre Bodin
|
252bb3afe3
|
Remove email update of admin during test that break next tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:51:03 +02:00 |
|
Alexandre Bodin
|
851ba201ac
|
Add /users/me routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:51:01 +02:00 |
|
Alexandre Bodin
|
cf4c70b01e
|
Init routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:50:59 +02:00 |
|
Pierre Noël
|
407949a70a
|
use findAll instead of find
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 10:50:51 +02:00 |
|
Pierre Noël
|
5a4e6c0cf5
|
add GET /admin/roles
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 10:50:48 +02:00 |
|
Convly
|
651d42dbea
|
fix PR comments, move pagination logic to the database layer, handle searches
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:50:44 +02:00 |
|
Convly
|
c9b02b2e25
|
Fix response object shape for get /admin/users
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:49:26 +02:00 |
|
Convly
|
60b24dd3c3
|
Add GET /admin/users route and new pagination system
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:49:22 +02:00 |
|
Pierre Noël
|
81640de2e7
|
add base for e2e tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 10:46:19 +02:00 |
|
Pierre Noël
|
1c65d3c10a
|
add GET /roles/:id
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 10:46:11 +02:00 |
|
Alexandre Bodin
|
9ecd81a122
|
Add QueryError and remove useless code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:45:05 +02:00 |
|
Alexandre Bodin
|
a841400f85
|
Add register route
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:45:03 +02:00 |
|
Alexandre Bodin
|
01854f431f
|
Add registration info route
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 10:44:59 +02:00 |
|
Convly
|
bc03d60b98
|
Fix badRequest error shape
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:38:10 +02:00 |
|
Convly
|
40089ed4aa
|
Add e2e tests, fix validation for mongoose, update services
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:38:08 +02:00 |
|
Convly
|
999e93db2b
|
Fix services calls in admin/auth controller
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:38:04 +02:00 |
|
Convly
|
8b4db69e8c
|
Add schema validation for POST /admin/users
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:38:02 +02:00 |
|
Convly
|
50b170e543
|
Uniformize code with rbac/login
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
|
2020-07-08 10:37:59 +02:00 |
|