Implement callback_can_edit

Implement a callback_can_edit which gives to opportunity to
check if a user has permission to edit / delete a record and
redirect the user to a read view only, if he hasn't.