2669 Commits

Author SHA1 Message Date
soupette
251646ea19 Add delete action
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-09 14:16:17 +02:00
soupette
8ec5a17806 Fix CE roles edition
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-09 12:16:01 +02:00
soupette
8ccc6aeda5 Copy ee folder only for admin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 18:36:43 +02:00
HichamELBSI
7c52b2d715 Move front EE folder
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 18:16:55 +02:00
Alexandre Bodin
9ec714fb2f Disallow disabling last super admin
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 16:43:20 +02:00
soupette
41c8db9994 Fix dot position
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 15:23:08 +02:00
soupette
b328025661 Fix snapshots
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 15:01:12 +02:00
soupette
4dba7a65d3 Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 14:53:48 +02:00
Alexandre Bodin
085f2574ea Merge branch 'feature/rbac-licensed' of github.com:strapi/strapi-private into feature/rbac-licensed 2020-07-08 13:54:04 +02:00
Alexandre Bodin
109e41ea1f Fix e2e tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 13:53:56 +02:00
cyril lopez
db4f0cf8b7
Merge pull request #104 from strapi/chore/fix-rebase
Chore/fix rebase
2020-07-08 12:50:12 +02:00
HichamELBSI
91b42edb25 Fix rebase errors front
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 12:48:46 +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
soupette
d692a61db3 Fix AuthPage conflicts
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:56:22 +02:00
Alexandre Bodin
11fd34ab53 Cleanup
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:47 +02:00
Alexandre Bodin
5b4b95dc49 Add check
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:47 +02:00
HichamELBSI
f424bdfeb3 Fix conditions bullet behavior & UI issues
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:48:47 +02:00
Alexandre Bodin
aaa4192010 Fix default ML permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:47 +02:00
Alexandre Bodin
ba5f12778a fix clean permission
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:47 +02:00
HichamELBSI
8074c5e8d7 Fox some UI bugs
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:48:46 +02:00
Alexandre Bodin
9ec4c9ec8b Exclude creator in fields perm
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:45 +02:00
Alexandre Bodin
5c6851e6ba Update naming of permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:45 +02:00
Convly
31d748f52e Add private to User.settings::blocked
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
c9ebae4c9f Fix authorization issues due to null subject registration
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
0cf76721e9 Add missing subject on upload permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
8797d25501 Add hasPermissions policy to concerned routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Convly
a300e356c7 Removes the plugins::users-permissions.user subject from editor & author's content-manager permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Convly
91bd4281c3 Fix permissions-manager query generation
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Convly
9cce0145c5 Fix elemMatch op bug (typo)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Convly
3953e5068b Add descriptive comment for hasPermissions transformers
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:43 +02:00
Alexandre Bodin
44a7e2321d Update findOne
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:42 +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
Convly
56d583e49e Add basis for upload controllers permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Convly
36facdfd00 Add new sanitize-entity.js
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Convly
46f0c87b7d Handle $or operation on pm query, better parsing for the query
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:41 +02:00
Convly
20f80b2361 Better permissions-manager.sanitize behavior
Forbid empty arrays as fields for permissions (on ability creation)
Differentiate input from output sanitizing

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:38 +02:00
Convly
c11e6dfa88 Use AbilityBuilder instead of defineAbility, fix content-manager::create route
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
b5fb5f8509 Add permissions to the content-manager routes
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:17 +02:00
Convly
11ba971302 Rework policy handling, add util to create policy factories, allow array declaration for hasPermissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:16 +02:00
Convly
241fb2379d Removes useless async from hasPermissions ability
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:16 +02:00
Convly
b3f602d207 Rework policies resolving (allow policy generators) / Add hasPermissions policy
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:16 +02:00
Alexandre Bodin
85ea0abdc8 Add condition
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:16 +02:00
Alexandre Bodin
4edad86029 Add basic created_by updated_by
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:16 +02:00
soupette
8f531f0bee Fix ui
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:15 +02:00
HichamELBSI
a9e7202e68 Fix checkbox label color
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 11:48:15 +02:00
Pierre Noël
2be4f8047a migrate users for new column isActive
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:48:15 +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
soupette
df711ded11 Upgrade tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:14 +02:00
soupette
e139c905a8 Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:14 +02:00
soupette
b659ae631d Add readonly mode for users
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 11:48:12 +02:00