HI Thibault,
as explained before: I selected ALL permissions (including the
'record_edit_front') for that user, but it still returns a 401. So
now this user can do everything as the admin (cause all permissions
are checked) except the edit of a record from within the front. Only
when I make this user super-admin, the form loads...
To me it seems like a $user->can() call with a non-existing permission
name (maybe just a typo) causing this issue as the super-admin option
bypasses the credential checks...
A search for record_edit_front gives only one result: dmFrontPlugin/
modules/dmWidget/config/security.yml
Doesn't this permission needs to be checked in the admin too as the
Ajax call opens the admin form?
Kind regards!
Erik