'Authorize an action against the policy.json.'

def _enforce(self, req, action):

    try:
        self.policy.enforce(req.context, action)
    except heat_exception.Forbidden:
        msg = (_('Action    %s    not    allowed    for    user') % action)
        raise exception.HeatAccessDeniedError(msg)
    except Exception:
        msg = (_('Error    authorizing    action    %s') % action)
        raise exception.HeatInternalFailureError(msg)
