Fix for permissions to edit a record