Alexandre Bodin
|
83b7926e3a
|
Fix missing event
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-23 18:36:29 +02:00 |
|
Maxwell Simmer
|
9684cd30db
|
Updates webhooks RegExp to allow undescores, fixes #5543 (#7079)
Signed-off-by: Maxwell Simmer <maxwell.simmer@gmail.com>
|
2020-07-22 10:49:55 +02:00 |
|
Pierre Noël
|
9983d3b44e
|
clean conditions at get and update
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-20 17:40:01 +02:00 |
|
Alexandre Bodin
|
9138034dbc
|
Make admin role not editable at all
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-20 11:39:26 +02:00 |
|
Pierre Noël
|
c73aadbed5
|
add batch delete for users
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-16 12:57:54 +02:00 |
|
Alexandre Bodin
|
634b80c96c
|
Fix unit test back
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 12:29:45 +02:00 |
|
Alexandre Bodin
|
29fcf7c3cd
|
Clean find relation list and tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
2020-07-08 11:48:42 +02:00 |
|
Pierre Noël
|
9267674a15
|
prepare code for migration
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:48:14 +02:00 |
|
Pierre Noël
|
25bea051e0
|
prevent delete user route to delete last superAdmin
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:10:11 +02:00 |
|
Pierre Noël
|
1ee5b7f189
|
fifth refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:10:09 +02:00 |
|
Pierre Noël
|
243c4ccc4e
|
add upload permissions to default roles + second refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:52 +02:00 |
|
Pierre Noël
|
dd88c00514
|
use new condition format
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:52 +02:00 |
|
Pierre Noël
|
6ab7669365
|
rename plugins::content-manager.create to plugins::content-manager.explorer.create and others
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:51 +02:00 |
|
Pierre Noël
|
b893501552
|
first refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:51 +02:00 |
|
Pierre Noël
|
8c1aa2999a
|
fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:51 +02:00 |
|
Pierre Noël
|
d35e1d36f1
|
remove user delete route
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:51 +02:00 |
|
Pierre Noël
|
98f8275190
|
prevent removing the last superadmin
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:50 +02:00 |
|
Pierre Noël
|
93fc900e10
|
create admin permissions at startup
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:50 +02:00 |
|
Pierre Noël
|
3b8cab0621
|
add conditions logic for author/editor
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:50 +02:00 |
|
Pierre Noël
|
711c58b05e
|
create role at startup + warning
Signed-off-by: Pierre Noël <petersg83@gmail.com>
|
2020-07-08 11:09:49 +02:00 |
|
Alexandre Bodin
|
a83c34e72e
|
Add default category
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
|
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 |
|
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 |
|