def user_has_permission(self, user, action):
        return (user in self.users_with_permission(action))
Return whether the given user has permission to perform the given action
dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/permission_policies/base.py/BasePermissionPolicy.user_has_permission