Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(2)  |  Import(0)

src/t/u/tuskar-0.4.1/tuskar/common/policy.py   tuskar(Download)
        extra.update(exc=exception.PolicyNotAuthorized, action=action)
 
    return policy.check(action, target, credentials, **extra)
 
 
    target = credentials
 
    return policy.check('context_is_admin', target, credentials)
 
 

src/t/u/tuskar-HEAD/tuskar/common/policy.py   tuskar(Download)
        extra.update(exc=exception.PolicyNotAuthorized, action=action)
 
    return policy.check(action, target, credentials, **extra)
 
 
    target = credentials
 
    return policy.check('context_is_admin', target, credentials)