14134 Commits

Author SHA1 Message Date
Alexandre Bodin
966d9c554f Move hasDeepFilters to utils
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:26 +02:00
Alexandre Bodin
c8d743ef60 Cleanup and add tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:26 +02:00
Alexandre Bodin
6776a3ce46 Add mongo support
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:36:24 +02:00
Alexandre Bodin
82316bbf3a Allow or operator and working with bookshelf
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:32:44 +02:00
HichamELBSI
987eb9fc7e Fix create view
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:32:42 +02:00
HichamELBSI
342e0a9a86 Fix PR review 2
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:11:22 +02:00
HichamELBSI
c75a0fe8fe Fix PR review
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:11:22 +02:00
HichamELBSI
3c6bb04001 Finish content types permissions
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:11:20 +02:00
Pierre Noël
316cf44b0e remote ML settings permissions for creator and editor
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:13 +02:00
soupette
a471693114 Fix param sent to the API
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:10:12 +02:00
Pierre Noël
eb895d7768 populate only roles
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:12 +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
1d3a054a5d update yarn.lock
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:11 +02:00
Pierre Noël
047a0be908 move function from bootstrap to service
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
3084b854d4 rename attributes -> values
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:53 +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
6a1d65bc37 third 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
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
a6e090d991 prevent modification and delete of super admin role
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:49 +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
soupette
84c4591816 Remove useless file
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:49 +02:00
soupette
c6d37dca41 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:49 +02:00
soupette
99797ce934 Add permissions for delete create update
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:49 +02:00
soupette
cc76fc2abc Refacto code
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:48 +02:00
soupette
c0a28d7064 Remove the redirect url
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:48 +02:00
soupette
896f7a5d96 Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:48 +02:00
soupette
1453e18818 Add loading states
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:48 +02:00
soupette
7006a8c02e Refzacto ListView
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:48 +02:00
soupette
11ad6abfef Fix subscriptions on unmount
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
fb9d4d439f Add permissions to CM listview
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
c9fadf4efd Improve code by using useMemo
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
a7ea1e3200 Temp commit
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
9f355043d0 Fix upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:47 +02:00
soupette
820c0e9ba1 Hide searchbar in upload modal ctm when not allowed to read
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +02:00
soupette
030066d542 Connect to check permissions to the API and disable Admin/indext.test.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +02:00
soupette
2de81865d8 Remove ct
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +02:00
soupette
e0dbf21925 Fix zIndex HeaderSearch
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +02:00
soupette
cc20facc5e Add permissions to roles
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:09:46 +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
Alexandre Bodin
d1c492a0fa Fix unit tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:09:45 +02:00
Alexandre Bodin
24d4bad10c Add displayName
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:09:45 +02:00