[ Avaa Bypassed ]




Upload:

Command:

www-data@3.139.85.192: ~ $
# Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.
from ._auth_context import ContextKey

OP_KEY = ContextKey('op-key')


def context_with_operations(ctx, ops):
    ''' Returns a context(AuthContext) which is associated with all the given
    operations (list of string). It will be based on the auth context
    passed in as ctx.

    An allow caveat will succeed only if one of the allowed operations is in
    ops; a deny caveat will succeed only if none of the denied operations are
    in ops.
    '''
    return ctx.with_value(OP_KEY, ops)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 1.56 KB 0644
_auth_context.py File 1.71 KB 0644
_caveat.py File 4.11 KB 0644
_checkers.py File 8.02 KB 0644
_conditions.py File 515 B 0644
_declared.py File 2.78 KB 0644
_namespace.py File 5.33 KB 0644
_operation.py File 586 B 0644
_time.py File 2.13 KB 0644
_utils.py File 377 B 0644