Add the optional callback Module:has_permission/3 for handling permissions