Implement generic permission for add, edit a record