def require_context(ctxt):
    if not ctxt.is_admin and not is_user_context(ctxt):
        raise exception.Forbidden()
Raise exception.Forbidden() if context is not a user or an
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/context.py/require_context