Example #1
0
def check_policy(context, action, target_obj=None):
    _action = 'trigger:%s' % action
    policy.enforce(context, _action, target_obj)
Example #2
0
def check_policy(context, action, target_obj=None):
    _action = 'trigger:%s' % action
    policy.enforce(context, _action, target_obj)
Example #3
0
def check_policy(context, action, target_obj=None):
    _action = 'scheduled_operation:%s' % action
    policy.enforce(context, _action, target_obj)
Example #4
0
def check_policy(context, action, target_obj=None):
    _action = 'scheduled_operation:%s' % action
    policy.enforce(context, _action, target_obj)