19 Commits

Author SHA1 Message Date
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
1ee5b7f189 fifth refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:09 +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
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
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
42e3b64689 refacto
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
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
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
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