mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Fix sanitize input not using the right subject
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
0ba3f0746d
commit
6d39f0e772
@ -34,7 +34,7 @@ const createPermissionChecker = ({ userAbility, model }) => {
|
||||
|
||||
const sanitizeInput = (action, data, entity) => {
|
||||
return permissionsManager.sanitize(data, {
|
||||
subject: entity ? toSubject(entity) : toSubject(data),
|
||||
subject: entity ? toSubject(entity) : model,
|
||||
action,
|
||||
isOutput: false,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user