19 Commits

Author SHA1 Message Date
Convly
72aaa16d3d Rename fieldsGranularity to fieldsRestriction, various bug fixes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:14 +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
Pierre Noël
96c68df220 simplify validator
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:47:46 +02:00
Pierre Noël
4d4c7678c0 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:47:46 +02:00
Pierre Noël
f5a0308d5c filter instead of slice
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:47:45 +02:00
Pierre Noël
d6536ba556 handle fields null for delete perm
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:47:45 +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
8598cee8d0 fourth refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +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
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
3b8cab0621 add conditions logic for author/editor
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09: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
3aec039698 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:09 +02:00
Pierre Noël
42e3b64689 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:05:08 +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