Added methods to assign and remove permissons from an entity