Set roles permissions - delete automatic onSave

Hi all,
When I set roles permissions it deletes automatically when I hit the save button, only when on the server, when we try it on localhost it works perfectly.
Does somebody know what the problem could be? or have a solution like setting it to default on code or another solution? :cold_face: