def check_perm(self, request, resource):

        perm_name = self.get_perm_name(resource, request.method)
        if not self._has_perm(request.user, perm_name):
            raise errors.Forbidden()
Check permission
dataset/ETHPy150Open wuher/devil/devil/perm/acl.py/PermissionController.check_perm